OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Capt.Volkov on 29 Aug 2002, 05:44:03
-
I need some help with:
how do i get to have an ai not in my group to sit down, and how do i get them to start on top of buildings or objects(like putting a crew sitting on the cannon of his tank).
Also can you please tell me other actions that can be done simply with the mission editor
-
Well.. I'd suggest getting some copies of both the official and unofficial command references for starters....
But... to answer a couple of your questions
to have an AI guy sit down or something.. you'll need to use:
unitname playmove "nameofmove"
where the unitname is the one you give it in the editor and the nameofmove is one of the animations listed in the unofficial command ref ;)
to move guys/objects in the air.. use this in their init field:
this setpos [getpos this select 0, getpos this select 1,x]
where x = height above ground in meters...
;) if your building is enterable then you can create an AI unit.. give him a waypoint directly on the building name that appears in the editor.. there should be a new selection called position # or somesuch.. those positions are some of the spots inside where the AI will walk to and hold
-
To sit down his behaviour must be safe.Also playmove didn't work for me, I had to use switchmove.
-
ok,thanks, but where do i find the command references?
-
Scripting commands for OFP v1.30 (http://www.flashpoint1985.com/docs/comref/comref.html)
Scripting commands for OFP v1.75 (Resistance) (http://www.flashpoint1985.com/docs/comrefnew/comref.html)
Pope Zog
-
thanks