OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: kevind2003 on 09 Apr 2003, 14:21:33
-
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
-
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 ;))