OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: borrowed soap on 22 Jun 2003, 01:44:23

Title: staying in
Post by: borrowed soap on 22 Jun 2003, 01:44:23
anyone tell me where i have made a mistake? they still wont stay in vehicle, but im doing what i think the tut is sayin so...

_car1 = _this select 0
_officer = _this select 1
_soldier1 = _this select 2
_soldier2 = _this select 3


_officer commandmove getpos _car1
_soldier1 commandmove getpos _car1
_soldier2 commandmove getpos _car1
@unitReady _officer
_officer assignAsDriver _car1
_soldier1 assignAsGunner _car1
_soldier2 assignAsCargo _car1
[_officer,_soldier1,_soldier2] ordergetin true

#Exit
exit
Title: Re:staying in
Post by: Komuna on 22 Jun 2003, 03:30:05
Seems OK, But i can find a few mistakes:


#Exit - this label is not necessary for such peace of script

[_officer,_soldier1,_soldier2] ordergetin true - It doesn't work. Don't ask me why! It's a syntax strange behaviour. Use this instead:

"[_x] ordergetin true" foreach [_officer,_soldier1,_soldier2]

It should be fine, now! ;)
Title: Re:staying in
Post by: borrowed soap on 22 Jun 2003, 03:39:13
thx muchly  ;D