OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: kingneb on 25 Apr 2003, 00:21:30

Title: takeoff trouble
Post by: kingneb on 25 Apr 2003, 00:21:30

The chopper is supposed to take off and fly to the invisible helipad named LZ.  Appearently, it does not do this, or seemingly terminates after [M1,P1] ordergetin true is performed.  
here is the script...

M1 switchmove "EffectCombatStand"
P1 switchmove "EffectCombatStand"
P1 AssignAsDriver CH1
M1 AssignAsCargo CH1
[M1,P1] ordergetin true
[] exec "LZmove.sqs"
P1 DoMove GetPos LZ
@UnitReady CH1
CH1 land "land"
Title: Re:takeoff trouble
Post by: LCD on 25 Apr 2003, 00:24:30
mebe instead of

@unitready CH1

try doin

@ CH1 distance LZ < 100

LCD OUT
Title: Re:takeoff trouble
Post by: kingneb on 25 Apr 2003, 00:36:27
thanks, but it did not help