trigger_cyclicobserver

Modified

12-Jul-2023

Changes cyclic observer mode at runtime.

Keyvalues


OnDestroy Function ondestroyfn : Name of the function to use from already parsed .as script files when entity is destroyed (killed) in any way. If the function belongs to namespace, you must use prefix with the namespace name (e.g. mynamespace::MyFunction) for the keyvalue.

Name targetname : Set name of trigger_cyclicobserver so other entities can trigger it to change cyclic observer mode. Every trigger use-type works uniformly. Can be kill-targeted.

Target target : Entity to trigger whenever trigger_cyclicobserver is triggered. Trigger use-type is 'Toggle'.

Mode to use m_Mode : Normally all players enters observer mode when no respawn points are available. When enabling this entity, players won't respawn on available spawn point until trigger_respawn is used (that let mapper control player respawns or disabling them).

  • 0 : Off
  • 1 : On
  • 2 : Toggle