Home   Help Search Login Register  

Author Topic: staying in  (Read 659 times)

0 Members and 1 Guest are viewing this topic.

borrowed soap

  • Guest
staying in
« 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

Komuna

  • Guest
Re:staying in
« Reply #1 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! ;)

borrowed soap

  • Guest
Re:staying in
« Reply #2 on: 22 Jun 2003, 03:39:13 »
thx muchly  ;D