OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ColMoore on 08 Jan 2003, 01:30:09

Title: variable/array help
Post by: ColMoore on 08 Jan 2003, 01:30:09
I need some script help here before I go nuts :

1) From a trigger that uses [this] exec "addme.sqs" I need to store the names of the AI into a growing array. This means storing names like "East Alpha Black:4" etc.

2) It should be possible to pick out the names from the array again later.


ColMoore
Title: Re:variable/array help
Post by: Liquid_Silence on 08 Jan 2003, 02:43:49
um, instead of [this] exec "addme.sqs" use: unitArray = unitArray + [this], and put unitArray = [] into init.sqs....