OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mephistopheles on 17 Jun 2004, 16:08:08

Title: Newbie, lol!
Post by: Mephistopheles on 17 Jun 2004, 16:08:08
Hi, I am a COMPLETE newbie to editing, but I am in the middle of my first mission, and I was wondering how one can stop a unit form moving from its current position at all, and I mean literally spawning at the beginning, until death/end of mission?

Regards,

Mephistopheles
Title: Re:Newbie, lol!
Post by: BHD Mod on 17 Jun 2004, 18:38:10
When placing the unit put this in his initialization field:
this disableai move

you have to be in the advance settting of the editor to see the initialization field when placing a unit

Hope this helps
Title: Re:Newbie, lol!
Post by: Dubieman on 17 Jun 2004, 18:53:31
Also you can use a hold waypoint right on the guy.

Also another bit of advice to keep him in a certain position.

this setunitpos "UP"     =  the guy stays standing

this setunitpos "DOWN"  =  the guy is prone

:gunman:
good luck editing....
Title: Re:Newbie, lol!
Post by: Dubieman on 17 Jun 2004, 18:54:28
ohh yeah put those bits of code in his init field.... ::) :P
Title: Re:Newbie, lol!
Post by: Mephistopheles on 18 Jun 2004, 12:01:09
Thanks very much, that was very useful!

Mephistopheles