(09-18-2014, 08:15 AM)First Captain Wrote: Can't you just make a big area that covers the whole hallway, then use a script to check if the Player is in them, use GivePlayerDamage with timer so that the Player would be given damage per second.
If Player is in the area, GivePlayerDamage 10, with a looping timer until he dies.
GetEntitiesCollide doesn't support Player. How do you propose this can be done?
Dammit, I should of given more info.
Spoiler below!
Okay, make a big area that covers the hallway. Put an AddEntityCollideCallback function to that area. When the Player collides, execute this:
The action in that alState function should be the looping timer that loops every n seconds and when the Player exits the area (that is if he does exit) remove the timers.