mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
init playerspawnarray var
since we are using an gvar array here edits to it externally should not require redefining local var for use in other events.
This commit is contained in:
parent
7459f9d3a0
commit
74aecd3849
@ -174,6 +174,7 @@ EPOCH_spawnIndex = _spawnIndex;
|
||||
EPOCH_spawnLimits = _spawnLimits;
|
||||
|
||||
// default data if mismatch
|
||||
_playerSpawnArray = missionNamespace getVariable [_playerSpawnArrayKey, _playerSpawnArrayDefault];
|
||||
if !(_playerSpawnArray isEqualTypeParams _spawnIndex) then{
|
||||
_playerSpawnArray = [];
|
||||
{ _playerSpawnArray pushBack 0 } forEach _spawnIndex;
|
||||
|
Loading…
Reference in New Issue
Block a user