OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: jens198 on 27 Sep 2002, 22:49:42
-
Hi guys,
In the helo "uh60" are four guys. m1(player) + m2 are in one group. m3+m4 are seperate soldiers. Then the helo reaches the waypoint where the troops are embarked "embark.sqs" (see below) is executed.
My intention is to make m3 and m4 to run to the bushes b1+b2 for cover.
Both get of the helo but don't move any further.
Any ideas?
Jens
P.S. My first scripting moves. The rescue of Devon Jones (shot down in Desert Storm) will be the background of this mission. BTW does anyone have a hint on a good site with background-infos on this event?
=====================================
;embark.sqs
uh60 setbehaviour "safe"
uh60 setspeedmode "limited"
uh60 flyinheight 25
uh60 land "getout"
m3 doMove getPos b1
m4 doMove getPos b2
-
Maybe there is not enough time for them to react, and they ignore the command because they are sitting comfortably in a chopper?
(I don't know, I am away from my OFP-installation :P).
-
Try this !
Get the units to a marker pos
create a marker, named "m1"
unit setpos getposmarker"m1"
this should work!