OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Dbl-Dutch on 20 Jan 2003, 04:19:16

Title: EDITING, Soldier Position
Post by: Dbl-Dutch on 20 Jan 2003, 04:19:16
I was trying to get a enemy soldier/s to sit around a fire.  This is the INITIALIZATION scripped i used.  It dont work???

the [ ] represent the INIT box:

[this switchmove "EffectStandSitDown"] and that has no effect.  I also had the following included in the INIT box: [this switchmove "EffectStandSitDown"; this removeWeapon "AK74"; this addWeapon "KEGak107"] and that didn't work appart from the weapon did get changed as requested.

Help please.  Thank you.
Title: Re:EDITING, Soldier Position
Post by: _hammy_ on 20 Jan 2003, 05:02:10
Code: [Select]
this switchmove "ANIMATION_NAME"
:P

make sure u have the right animation name, I would tell you what it is, but i lost my animation list :(
Title: Re:EDITING, Soldier Position
Post by: Bronski on 20 Jan 2003, 06:22:34
This is what you need in the init field:

Code: [Select]
this setbehaviour "safe"; this switchmove "EffectStandSitDown"
Do make sure that is the right animation.  

If you want to do an animation that the soldier does when his rifle is on his back you need to have them in safe mode.
Title: Re:EDITING, Soldier Position
Post by: LCD on 20 Jan 2003, 08:46:43
u cant useanims from da init line ;D

LCD OUT
Title: Re:EDITING, Soldier Position
Post by: _hammy_ on 20 Jan 2003, 09:22:51
ummm, ive done it before...
Title: Re:EDITING, Soldier Position
Post by: Dbl-Dutch on 20 Jan 2003, 11:04:48
I just want the soldier in question, sat down at the start of the mission ::) and thanks for all the replies so far ;D
Title: Re:EDITING, Soldier Position
Post by: LCD on 20 Jan 2003, 11:21:04
just give him wp (put it on him)

with da

unitname switchmove "anim"

LCD OUT
Title: Re:EDITING, Soldier Position
Post by: Chris Death on 20 Jan 2003, 11:42:43
Quote
u cant useanims from da init line

I wouldn't generalize that LCD

Since an init-field is also just an auto-executed
onActivation field, you can use it to execute anims from.
It surely depends on: what you want to animate, but
theoretically it's possible.

~S~  CD
Title: Re:EDITING, Soldier Position
Post by: Gameer_77 on 20 Jan 2003, 12:48:24
It surely depends on: what you want to animate, but
theoretically it's possible.

No it's not. ;D

You can't put animations in the unit's init. Full-stop. :)

Gameer