Jump to content
Sign in to follow this  
iNeo

Addaction question

Recommended Posts

If you add an action to a unit, you got to get about 3 meters close to it to be able to use it.

It's the same when the action is added to a player. I'd like only the player the action is added

to, to be able to use the action, no matter how close anyone else comes. Is there a way?

Share this post


Link to post
Share on other sites

No, but you can use :

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

?(_this select 0) != (_this select 1):exit

<span id='postcolor'>

as first line of action script. Script ends when action is not used by its owner.

Share this post


Link to post
Share on other sites

you need to check if the current player is the guy your are adding the action to, for example if you are doing:

dude1 addaction["suicide","suicide.sqs"]

do this instead:

? player == dude1 : dude1 addaction["suicide","suicide.sqs"]

Share this post


Link to post
Share on other sites

Hehe, i have a question about this addAction thingy! confused.gif

When i add a "addaction" to my soldider the action is in the top of the list, is it possible to have it as the very last in the list in the "action menu"

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (jeppelykke @ Mar. 03 2003,09:53)</td></tr><tr><td id="QUOTE">Hehe, i have a question about this addAction thingy!  confused.gif

When i add a "addaction" to my soldider the action is in the top of the list, is it possible to have it as the very last in the list in the "action menu"<span id='postcolor'>

Nope, not as far as I know. I believe all custom addAction's are placed on top. icon12.gif

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  

×