OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: seanver on 04 Sep 2002, 19:02:05

Title: Aiming animation
Post 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?
Title: Re:Aiming animation
Post by: OPF FREAK on 04 Sep 2002, 19:45:04
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  
Title: Re:Aiming animation
Post by: OPF FREAK on 04 Sep 2002, 19:46:10
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  
Title: Re:Aiming animation
Post by: Messiah on 04 Sep 2002, 19:48:36
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.
Title: Re:Aiming animation
Post by: Chomps on 04 Sep 2002, 21:33:06
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";
Title: Re:Aiming animation
Post by: seanver on 04 Sep 2002, 21:38:07
Thanks for your answers guys.