bhaz 0 Posted September 28, 2013 Came across something I've never noticed before in a mission I'm designing at the moment: _groupArray = missionNamespace getVariable( format[ "INT_town_%1_groups", _this select 2 ] ); _groupArray set[ count _groupArray, _spawnedGroup ]; I'm keeping track of groups I spawn in per town so they can be deleted later, and even though I'm adding a new value to the local array, the global is being updated without needing to use setVariable. Has it always been like this? Share this post Link to post Share on other sites
cuel 25 Posted September 28, 2013 http://community.bistudio.com/wiki/Operators Array Operators Normally arrays are assigned by reference. That means, if you assign array a to array b and change a afterwards, also b is changed. Use the copy operator to avoid this otherwise useful feature. Share this post Link to post Share on other sites
bhaz 0 Posted September 29, 2013 Never knew that, thanks. :) Share this post Link to post Share on other sites