wait: prevent triggering again for this amount of time (default: 5) - applies to target2, target3, target4.
---------NOTES----------
If spawned without any key specified in itemkeys, this trigger will display an error and remove itself.
-message2 and noise2 will be resent to the player every 2 seconds while he is in the trigger zone.
+message2 and noise2 will be resent to the player every 2 seconds while they are in the trigger zone.
*/
spawnfunc(trigger_keylock)
{
trigger_keylock_link(this);
}
#elif defined(CSQC)
-void keylock_remove(entity this)
-{
- strfree(this.target);
- strfree(this.target2);
- strfree(this.target3);
- strfree(this.target4);
- strfree(this.killtarget);
- strfree(this.targetname);
-}
-
NET_HANDLE(ENT_CLIENT_KEYLOCK, bool isnew)
{
this.itemkeys = ReadInt24_t();
return = true;
- this.classname = "trigger_keylock";
- this.entremove = keylock_remove;
+ this.entremove = trigger_remove_generic;
}
#endif