Jump to content
Sign in to follow this  
bhaz

getVariable returns a reference?

Recommended Posts

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

Never knew that, thanks. :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×