Difference between revisions of "Template:KV TriggerOnce"
From Valve Developer Community
|Line 1:||Line 1:|
: Filter to use to see if activator triggers me. See the [[filter_activator_name]] entity for further explanation.
Revision as of 21:08, 19 July 2009
- Filter Name
- Filter to use to see if activator triggers me. See the filter_activator_name entity for further explanation.
- Origin (X Y Z) (origin)
- The position of this entity's center in the world. Rotating entities typically rotate around their origin.
- Start Disabled (StartDisabled)
- Stay dormant until activated (probably with the
Note:If a trigger does not start out with a parent, but rather gets one during run-time, this value should be set to a static entity. This is so the entity's solidity is set to VPhysics rather than BSP.
- Global Entity Name
- Name by which this entity is linked to another entity in a different map. When the player transitions to a new map, entities in the new map with globalnames matching entities in the previous map will have the previous map's state copied over their state.
- Entity Scripts
- Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
- Script think function
- Name of a function in this entity's script which will be called automatically every 100 milliseconds (ten times a second) for the duration of the script. It can be used to create timers or to simulate autonomous behavior. The return value (if present) will set the time until the next call. Note:Try to avoid expensive operations in this function, as it may cause performance problems.