by Enjay » Mon Aug 12, 2019 2:08 pm
I have a map (UDMF) where a line on the front of a door only has a tag at map startup. An ACS script gives the line a special to run a script. Later on, a different script changes the line to a normal door type.
Here's my issue. When the script is first allocated to the line, I only want the player to be able to activate the script; it flashes lights, plays sounds, puts a message up and spawns things. I definitely do not want any enemies triggering that.
However, once the door is "fixed" (i.e. becomes just a normal door) I want anyone to be able to activate it: players or enemies.
In Hexen mode this was easy because of the lax activation types. If a script was set to be run by the player, monsters wouldn't run it; however, as soon as it became a door, monsters can activate those even if they are not explicitly allowed to do so. No special handling required.
I am aware that I can set lax activation via mapinfo, but I don't want it to apply across the whole map, just on certain doors.
What's the best way to go about dealing with this?
Thanks.
I have a map (UDMF) where a line on the front of a door only has a tag at map startup. An ACS script gives the line a special to run a script. Later on, a different script changes the line to a normal door type.
Here's my issue. When the script is first allocated to the line, I only want the player to be able to activate the script; it flashes lights, plays sounds, puts a message up and spawns things. I definitely do not want any enemies triggering that.
However, once the door is "fixed" (i.e. becomes just a normal door) I want anyone to be able to activate it: players or enemies.
In Hexen mode this was easy because of the lax activation types. If a script was set to be run by the player, monsters wouldn't run it; however, as soon as it became a door, monsters can activate those even if they are not explicitly allowed to do so. No special handling required.
I am aware that I can set lax activation via mapinfo, but I don't want it to apply across the whole map, just on certain doors.
What's the best way to go about dealing with this?
Thanks.