GothicOne 0 Posted May 16, 2002 I'm unclear on the proper syntax for using the actions. Â Pasted examples from the downloaded command ref. manual. STR_ACTION_TAKEWEAPON.............. Take %s STR_ACTION_DROPTAKEWEAPON....... Take %s (drop %s) STR_ACTION_TAKEMAGAZINE............Take %s STR_ACTION_DROPTAKEMAGAZINE.....Take %s (drop %s) STR_ACTION_TURNIN.......................Turn in STR_ACTION_TURNOUT....................Turn out "STR" I haven't seen that in any syntax posted in the forum. And the underscores never seen those either. Â How are they used? Share this post Link to post Share on other sites
Aculaud 0 Posted May 16, 2002 Actions are usually executed with no spaces, and i always see them done in all caps. like, if i wanted to make a person eject from a chopper at a trigger or waypoint, it would go like... ap action ["EJECT","Chopper"] Chopper being the name of the helicopter. I dont know what the str stands for, and you never have to include the underscores. It seems to me that pretty much all actions are done with strings similar to that. Share this post Link to post Share on other sites
GothicOne 0 Posted May 16, 2002 Hi Aculaud So what is the "Take %s" all about. How does the takeweapon work... unit action ["TAKEWEAPON","RPGLauncher"] That certainly doesn't work. Share this post Link to post Share on other sites
Aculaud 0 Posted May 16, 2002 as far as i can tell, the Take %s (drop %s) bits are just an explaination of what the command does. About your specific command, i wouldnt be able to tell you. There seem to be specific variations for all of them. For example, placing a mine or satchel charge is an action, but the command that does it is unit fire ["PUT","PIPEBOMB"] Its weird like that. However, i would imagine that if you want someone to take a weapon, they would have to not have any first. If they did, i would think your command would have to go like ["TAKEWEAPON","RPGLauncher","DROP","whatever hes holding"] or something to that extent. Share this post Link to post Share on other sites