-
Gunnery Sergeant
How do you make a soldier sit, salute, or any other position (like the modelling like the sit down but still aiming position.) I'd really like to know so I can make a comic with OFP.
-
-
Gunnery Sergeant
where do I place it in the advanced option though I've placed
soldier playmove "onchair" everywhere on waypoints to triggers to the soldier himself and nothing
-
Lieutenant Colonel

Have you tried
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">unitname switchmove "onchair"[/QUOTE]
in the units initialization line?
Note that in your example the unit needs to have the name "soldier". If the unit doesn't have this name, the command doesn't work.
-
Gunnery Sergeant
yeah I put rifleman and that didnt do it either
-
The animations don't work from the init lines. Some animations work only with switchMove.
Put this line on the waypoint onActivation and you don't even need to name the unit:
this switchMove "onchair"
-
Gunnery Sergeant
did and that didnt work all it said was unknown operator
-
Master Sergeant
Below example should get the unit on his knee with the gun at the ready.
What to do:
- Give the soldier a name.
- In the initialisation field of the unit write down:
this setUnitPos "up"; this setBehaviour "combat"
- Place a trigger activated by anybody over the unit.
- In the triggers on activation field put down this:
unit switchmove "CombatToWeapon"
<span style='color:red'>Note: the word unit in above line must be replaced by the name you have given to that 1 unit you placed.</span>
p.s. You could use the COMREF for all the animations m8.
Get it from OFPINFO or OFPEC. You need the downloadable comref not the online one. The downloadable one has the animations list.
-
Gunnery Sergeant
Finally got it to work but how do you turn the damn AI because they instantly get out of the motion (most anyways) and I want them to continue the animation(loop) or stay stuck like onchair
-
Master Sergeant
Yeah that's the problem indeed. The unit that does the anim tends to get up as soon as he detects the enemy. I once used a small looping script to counter that. Here's an exanmple:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
#loop
unit switchmove "CombatToCrouch"
~300
Goto "loop"
[/QUOTE]
First i used the combattoweapon anim as i described in my previous post, then after that i used the above. This example waits 5 minutes (300 seconds) then forces the unit back in anim. But you will have to adjust to own needs. Also you might wanna use a check for when that perticular unit get's killed. Otherwise it will look strange when the unit that's dead get's forced to do a anim. The body of the dead unit will then do some spasm movements every time the script loops if there is no check 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules