How do you animate Units?

All the movements a unit makes in the game can be replicated by using the playMove and switchMove commands. A full list of all the animations units can perform can be found here. It can be tricky to get units doing just what you want, as some animations need the unit to be in a particular behaviour mode such as safe or careless. Some animations can only be called using switchmove, others with playmove. Some of the more basic moves are detailed below:

OFP

sit on ground - unit_name switchmove "EffectStandSitDownStill"

squat - unit_name switchmove "FXInKneel"

press-ups - unit_name switchmove "FXStandDip"

fold arms - unit_name switchmove "FXInHandStat"

surrender - unit_name switchmove "FXStandSurUniv"

hands up - unit_name switchmove "FXWomanSur"

salute - unit_name switchmove "EffectStandSalute"

at ease - unit_name switchmove "FXStandAtt"

punch - unit_name switchmove "StandStrokeFist"


Note that with telephones, the animation in itself will not include the telephone handset. To equip a unit with a telephone, use unit_name addweapon "phone"