Thanks
ConnorMcLeod, it works flawlessly
EDIT: I need one more thing, I'd like to get all the trigger_hurt entities indexes in a map that has "damagetype" of DMG_FALL (32)
Bad English. Let me rephrase: I'd like to loop all trigger_hurt entities, and if their damagetype is 32, then do something to them. Right now I'm stuck at getting the damagetype value.