Created
June 5, 2017 23:46
-
-
Save wanderrful/f9a62b83f9f485054fb68ca8049f627f to your computer and use it in GitHub Desktop.
Example usage: if you have a bunch of triggers all with the prefix "trg_", then you can assemble them all into an array by saying "trg" call sxf_fnc_getEntitiesByPrefix;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Example usage: | |
//if you have a bunch of triggers all with the prefix "trg_", then you can assemble them all into an array by saying: | |
//"trg_" call sxf_fnc_getEntitiesByPrefix; | |
sxf_fnc_getEntitiesByPrefix = { | |
_tempList = []; | |
_i = count _tempList; | |
while { _i = _i + 1; !isNil (_this + str _i) } do { | |
_tempList pushBack ( missionNamespace getVariable [(_this + str _i), objNull] ); | |
}; | |
_tempList | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment