trigger_weapon
Jump to navigation
Jump to search

trigger_weapon is a trigger entity available in
No More Room in Hell.
Entity Description
The trigger_weapon is a brush entity that triggers when it detects a specific weapon inside it, listed in it's KeyValues.
KeyValues
- Name (targetname) <string>
- The name that other entities refer to this entity by.
- Entity Scripts (vscripts) <string>
- Name(s) of script files that are executed after all entities have spawned.
- Script think function (thinkfunction) <string>
- Name of a function in this entity's script scope which will be called automatically.
- Parent (parentname) <string>
- The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent.
- Origin (X Y Z) (origin) <origin>
- The position of this entity's center in the world. Rotating entities typically rotate around their origin.
- Start Disabled (StartDisabled) <boolean>
- Should we start off Disabled?
- Global Entity Name (globalname) <string>
- 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.
- Filter Name (filtername) <string>
- Filter to use to see if activator triggers me. See filter_activator_name for more explanation.
- Trigger Weapon (trigger_weapon) <classname>
- Classname of the weapon that can activate this trigger.
- Repeat Delay (delay) <integer>
- Amount of time, in seconds, of delay between allowed activations. Leave this as -1 to always allow activation.
Flags
- Clients : [1]
- Clients.
- Disallow Bots : [4096]
- Prevents Survivor Bots from triggering.
You probably shouldn't use the other Flags on this entity, many are inherited from the trigger_ base.
Inputs
- Kill
- Kill this entity.
- Toggle
- Toggles this trigger brush from it's current state. Enable -> Disable, and vice versa.
- Enable
- Enable this trigger brush.
- Disable
- Disable this trigger brush.
- DisableAndEndTouch
- Disable this trigger brush and forcibly ignore touching entities.
Outputs
- OnWeaponTrigger
- Fired when the Trigger Weapon enters this brush.
- OnEnable
- Enable this trigger brush.
- OnDisable
- Disable this trigger brush.
- OnEndTouch
- Fired when a valid entity stops touching this trigger.
- OnEndTouchAll
- Fired when all valid entities stop touching this trigger.
- OnStartTouch
- Fired when a valid entity starts touching this trigger.
- OnStartTouchAll
- Fired when a valid entity starts touching this trigger, and no other entities are touching it. If there are any other entities touching the trigger when a new one begins to touch, only OnStartTouch will fire.
- OnUser1 to OnUser4
- Fired in response to the FireUser inputs.