Home   Help Search Login Register  

Author Topic: Please help me debug what's wrong in this simple script  (Read 507 times)

0 Members and 1 Guest are viewing this topic.

kevind2003

  • Guest
Hi,

I can't get the following script work, I think I don't know how to set an array...?  ???

_allvehicle = [_vehicle1, _vehicle2, _vehicle3]

? not alive _vehicle1 : _allvehicle = _allvehicle - [_vehicle1]
? not alive _vehicle2 : _allvehicle = _allvehicle - [_vehicle2]
? not alive _vehicle3 : _allvehicle = _allvehicle - [_vehicle3]

[units _grp select 0] ordergetin true
units _grp select 0 assignascargo _allvehicle select 0
« Last Edit: 09 Apr 2003, 14:22:36 by kevind2003 »

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Please help me debug what's wrong in this simple script
« Reply #1 on: 10 Apr 2003, 02:11:17 »
Hey, Kevind

I think the problem may be in the last line there... it should look something like this:

"_x assignascargo (_allvehicle select 0)" foreach units _grp

And it also should be before the ordergetin command (your guys need to know what vehicle they're getting in to before you tell them to get in ;))