TriggerHelper functions to retrieve entities by player and by class.
commit26a9a9e8b97e21131139a159cdee2fb6317af934
authorelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Wed, 7 Mar 2018 13:54:58 +0000 (7 13:54 +0000)
committerelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Wed, 7 Mar 2018 13:54:58 +0000 (7 13:54 +0000)
tree4bb621a6dbff678e0a9bf4b382fb1524d2779a3b
parentac1b9874a862541708ad8f3a58f4bbd434d0033d
TriggerHelper functions to retrieve entities by player and by class.

Removes repetitive RangeManager and Identity component querying from triggerscripts.
It means that mostly map specific logic remains in the triggerscript.
This should bring TriggerScript coding a bit closer to map authors who aren't exactly software developers.
Call the RangeManager entity getters on Danubius and Survival multiple times on init to further simplify code, as these microseconds on init are irrelevant.

git-svn-id: https://svn.wildfiregames.com/public/ps/trunk@21459 3db68df2-c116-0410-a063-a993310a9797
binaries/data/mods/public/maps/random/danubius_triggers.js
binaries/data/mods/public/maps/random/elephantine_triggers.js
binaries/data/mods/public/maps/random/survivalofthefittest_triggers.js
binaries/data/mods/public/maps/scripts/TriggerHelper.js