Jump to content
Sign in to follow this  
GothicOne

Action syntax?

Recommended Posts

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

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×