How would you like to add the unit exactly?
Do you just want to tack it onto the end of the array, like so:
array =
array + [
unit ] ?
or would you like to specify a position in the array for the unit to go, like this:
array set [
n,
unit ]
(where
n is the position in the array) ?
or would you rather make an array out of all the units inside a trigger, like this:
array = thislist (in the Onactivation line of a present trigger) ?
Do any of those help you out at all?