Nightjay0044 1 Posted September 5, 2008 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
gnu-06 0 Posted September 6, 2008 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
ProfTournesol 956 Posted September 6, 2008 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