Jump to content
Sign in to follow this  
Nightjay0044

Addaction appear from distance

Recommended Posts

Hi, I was wondering how does one make an addaction appear in the action menu when the player is only a certain feet or so away from the other soldier he's going to?

I want the addaction to appear say when I'm a foot away from the other soldier.

Thank you.

Share this post


Link to post
Share on other sites

hello i think is better command to do this but i have another 1 :

u can do a trigger 50 m as circle and do a quick  script like a gps marker

the triger can fallow the soldier anywher and when u go to that soldier u active the trigger and sure in that triger u can add you action or better u can do 2 trigger fallowing the soldier 1 to active the action and other 1 to delet the action when u are not detected (loop trigger) but i forget the command to do a trigger detecting only the name that u give to the other soldier i think some thing like this ?man1% hmm srry i dont remember it i was searshing for it a long time but not find it it useful command but u can synchronize the triggers with a soldier u want to aprear action

Share this post


Link to post
Share on other sites

Very simple :

put a trigger on the map, repeatable, with in the condition line :

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">(player distance soldier1) <= 50

having named soldier1 the other soldier.

Then, put the addaction command on the "on activation" line, such as :

Quote[/b] ]mybeautifullaction = player addaction ["my action","myaction.sqs"]

Then, put this on the "on deactivation" line :

Quote[/b] ] player removeaction mybeautifullaction

Et voila !

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  

×