Closed Erythritee closed 1 year ago
Try use InfectionOrign = Append(InfectionOrign, PositionOf(EventPlayer()));
instead.
Append will return an copy of array:
T[] Append(T[] array, T | T[] valueOrValues)
T
is type of vector.An small alternative is simple do array += value
that will produce same workshop action to append element(s) to array using Modify Global Variable
action.
Example:
InfectionOrign += PositionOf(EventPlayer());
Will result in:
Modify Global Variable(InfectionOrign, Append To Array, Position Of(Event Player));
ModAppend
is the way to do the above without writing =
, as follows:
InfectionOrigin.ModAppend(PositionOf(EventPlayer()));
The output of this line in Overwatch settings would be
Modify Global Variable(InfectionOrigin, Append To Array, Position Of(Event Player));
InfectionOrign.Append(PositionOf(EventPlayer()));
doesnot work and i got this