Jump to content
Sign in to follow this  
Maje-tyTheDogg

Is it possible to find out,

Recommended Posts

Hi!

I ask this because of making some new smoke effects for a plane. Is it possible? I need a script that tells me the position where my plane is hit like:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_x =?(where is my plane hit)

drop fireeffect getpos [_x]

<span id='postcolor'>

because I want smoke effects after a hit...

(sorry for the bad english but I hope you understand me)

Thank you.

Maje$tyTheDogg

Share this post


Link to post
Share on other sites

Just use

Drop fireeffect getpos yourplane

Then to detect that your plane has hit the ground and stands still

yourplane [getpos select 2] > 10

Speed yourplane == 0

I'm don't sure about the syntax so you'll need to lock'em up!

biggrin.gif

Share this post


Link to post
Share on other sites

Man, what the f**k!

Do you think I am silly?

...

Sorry, but I am no newbie, I did really much smokescripts (No man's Land Mod, Berlin 1942, AIA, Fieseler Storch, Tank Burn scripts, etc!!!!wink.gif, you don't undastand my question, I thought of something like it they did in the blood addon, like if I shoot at the back of my plane, the script will tell this to me with the coordinates where the plane was hitten. I think it must be possible, because if you shoot in the head of a soldier in ofp, the blood comes out of tha head, not out of tha leg :-).

Do you now know what I mean?? Please help me

Share this post


Link to post
Share on other sites

The dammaged event handler is suppost to give you a selection name that was hit, however I can't get this EH to work right now, not sure why.

Share this post


Link to post
Share on other sites

Try a call to this script from your event handler-</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">_numberElements = count _this

_i = 0

_theText = ""

while "_i < _numberElements" do {_theText = _theText + format["_this select %1 = %2\n",_i,_this select _i]; _i= _i + 1}

cutText [_theText,"PLAIN"]

;or use

;hint format["%1",_theText]

exit<span id='postcolor'>

The "dammaged" handler doesnt work on planes or other vehicles.

Share this post


Link to post
Share on other sites

No the EH does not trigger at all.

I don't fully understand your last sentence, are you saying the dammaged EH does not work on planes and other vehicles?

Here is something to test EH's:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">obj addEventHandler ["name",{player sidechat format ["%1",_this]}];<span id='postcolor'>

Share this post


Link to post
Share on other sites

(Fixed that last sentence, should make sense now.)

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">are you saying the dammaged EH does not work on planes and other vehicles?

<span id='postcolor'>Yes that is what I was saying.

My original post was not directed at you bn880, just posted to share a script (with the OP) that I came up with when I was playing around with event handlers.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×