Skip to content

Instantly share code, notes, and snippets.

@wanderrful
Created June 5, 2017 23:46
Show Gist options
  • Save wanderrful/f9a62b83f9f485054fb68ca8049f627f to your computer and use it in GitHub Desktop.
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;
//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