OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: seanver on 04 Sep 2002, 19:02:05
-
What's the name -because I'm almost sure there is an animation like the one I want- of the animation that makes a solider aim like if he was looking through the weapon's sight?
-
do you mean as if hes got his eye on the sight I think this might work
AI switchmove "combattocrouch"
Look for one like that in the animation list
-
do you mean as if hes got his eye on the sight I think this might work
AI switchmove "combattocrouch"
Look for one like that in the animation list and it looks as if hes aiming
-
or.... give the unit a waypoint but set it to 'never fire' or 'hold fire'
then let him aim at an enemy - he will take up the aiming stance but not shoot.
-
Standing and aiming:
this setBehaviour "COMBAT"; this setUnitPos "UP";
Crouched and aiming:
this setBehaviour "COMBAT"; this setUnitPos "UP"; this switchMove "Crouch";
Prone and aiming:
this setUnitPos "DOWN";
(The soldier looks like he is looking through the sights while he is prone by default.)
Remember if you want the soldier to behave normally afterwards, make him setUnitPos "AUTO";
-
Thanks for your answers guys.