qzdoom/wadsrc/static/zscript/actors/shared/secrettrigger.zs
2021-09-12 13:18:40 +02:00

27 lines
351 B
Text

class SecretTrigger : Actor
{
default
{
+NOBLOCKMAP
+NOSECTOR
+NOGRAVITY
+DONTSPLASH
+NOTONAUTOMAP
}
override void PostBeginPlay ()
{
Super.PostBeginPlay ();
level.total_secrets++;
}
override void Activate (Actor activator)
{
Level.GiveSecret(activator, args[0] <= 1, (args[0] == 0 || args[0] == 2));
Destroy ();
}
}