Let's say you want a US soldier to be sitting on his arse from the instant the mission starts and just wait.
OK, place your player's unit and a friendly US soldier near each other. Seperate the units. Use the "unit" command to edit the soldier you want to sit. Under the edit unit menu, there's a blank field called "Initialization". In the blank text field, type:
this switchmove "effectstandsitdown"
You don't need to name him for this example. Now set him a waypoint, quite near his start point. Set his behavior to 'safe'.
When you preveiw the mission, the soldier should immediately sit ans stay put. If shot at, he should react. A great command for a lazy sentry in a rear area or a few guys sitting around a campfire, which brings me to another command, a bit more in depth, which is the famous "action" command
let's say you want a soldier to light a fire. Place your player's unit and a friendly unit side by side. Seperate them so they aren't in the same group, just like in the "sit down" example. Place a fire quite close by the soldier who isn't under your command. Edit the soldier so he has a name- it's put right in the 'name' field. Now name the fire the same way (different names, please
) Let's say your soldier is "priv1" and the fire is "fire1" ~ note: quotes are NOT typed in the name field.
Now set a waypoint for priv1, quite close to the fire. Check out the edit waypoint menu for a bit. There's a blank field called "On Activation". In this blank field type:
priv1 action ["Fire inflame", fire1]
That labels who's doing what, and to who: priv1 will perform an action to the class of object called fire, that action is to light the fire, the fire he will light is called fire1.
While still editing the waypoint, make his Behavior 'safe'.
When you preview the mission, the soldier named priv1 should bend down and light the fire. If you like, add another waypoint that has this in the "On activation" field, and he should stand back up:
this switchmove "effectstand"
I've taken care to take notes as I perform these two examples in the editor and I think I've missed nothing. However I am not Joe Editor and i do make mistakes. If anyone spots a discrepancy or a syntax error I have posted, please reply with a correction. I am trying to clarify a few things to give newbies a solid base to build on, not confuse folks further
RYAN