Trigger brush: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
| Line 32: | Line 32: | ||
input Use(void) : "Use" | input Use(void) : "Use" | ||
output OnUse(void) : "On use" | output OnUse(void) : "On use" | ||
output OnStartTouch(void) : "Fired when an entity starts touching this trigger. The touching entity must pass this trigger's filters to cause this output to fire." | output OnStartTouch(void) : "Fired when an entity starts touching this trigger. " + | ||
output OnEndTouch(void) : "Fired when an entity stops touching this trigger. | "The touching entity must pass this trigger's filters " + | ||
output OnEndTouchAll(void) : "Fires when an entity stops touching this trigger, and no other entities are touching it. Only entities that passed this trigger's filters are considered." | "to cause this output to fire." | ||
output OnEndTouch(void) : "Fired when an entity stops touching this trigger. " + | |||
"The touching entity must pass this trigger's filters " + | |||
"to cause this output to fire." | |||
output OnEndTouchAll(void) : "Fires when an entity stops touching this trigger, " + | |||
"and no other entities are touching it. Only entities " + | |||
"that passed this trigger's filters are considered." | |||
]</pre> | ]</pre> | ||
==Entity Description== | ==Entity Description== | ||
Revision as of 20:41, 16 April 2006
@SolidClass base(Targetname, Parentname, Global, EnableDisable) = trigger_brush [ spawnflags(flags) = [ 2: "Ignore player +USE" : 0 ] InputFilter(choices) : "Input Filter" : 0 : "Used to specify which inputs this entity will accept." = [ 0 : "Allow Everything" 22 : "Touch/Untouch: Players" 20 : "Touch/Untouch: Players & NPCs" 16 : "Touch/Untouch: Players, NPCs, Pushables" 18 : "Touch/Untouch: Players & Pushables" 21 : "Touch/Untouch: NPCs" 17 : "Touch/Untouch: NPCs & Pushables" 19 : "Touch/Untouch: Pushables" 6 : "Touch/Untouch & Use: Players" 2 : "Touch/Untouch & Use: Players & Pushables" 4 : "Touch/Untouch & Use: Players & NPCs: " 5 : "Touch/Untouch & Use: NPCs" 1 : "Touch/Untouch & Use: NPCs & Pushables" 3 : "Touch/Untouch & Use: Pushables" 14 : "Use: Players" 12 : "Use: Players & NPCs" 8 : "Use: Players, NPCs, & Pushables" 10 : "Use: Players & Pushables" 13 : "Use: NPCs" 9 : "Use: NPCs & Pushables" 11 : "Use: Pushables" ] input Use(void) : "Use" output OnUse(void) : "On use" output OnStartTouch(void) : "Fired when an entity starts touching this trigger. " + "The touching entity must pass this trigger's filters " + "to cause this output to fire." output OnEndTouch(void) : "Fired when an entity stops touching this trigger. " + "The touching entity must pass this trigger's filters " + "to cause this output to fire." output OnEndTouchAll(void) : "Fires when an entity stops touching this trigger, " + "and no other entities are touching it. Only entities " + "that passed this trigger's filters are considered." ]
Entity Description
Keyvalues
- Template:Kv targetname
- Template:Kv parentname
- Template:Kv global
- Template:Kv enabledisable
- InputFilter
- Used to specify which inputs this entity will accept.
Literal Value Description 0 Allow Everything 22 Touch/Untouch: Players 20 Touch/Untouch: Players & NPCs 16 Touch/Untouch: Players, NPCs, Pushables 18 Touch/Untouch: Players & Pushables 21 Touch/Untouch: NPCs 17 Touch/Untouch: NPCs & Pushables 19 Touch/Untouch: Pushables 6 Touch/Untouch & Use: Players 2 Touch/Untouch & Use: Players & Pushables 4 Touch/Untouch & Use: Players & NPCs 5 Touch/Untouch & Use: NPCs 1 Touch/Untouch & Use: NPCs & Pushables 3 Touch/Untouch & Use: Pushables 14 Use: Players 12 Use: Players & NPCs 8 Use: Players, NPCs, & Pushables 10 Use: Players & Pushables 13 Use: NPCs 9 Use: NPCs & Pushables 11 Use: Pushables
Flags
Inputs
Outputs
- Template:O targetname
- OnUse
- (!activator is the activator)
- OnStartTouch
- Fired when an entity starts touching this trigger. The touching entity must pass this trigger's filters to cause this output to fire. (!activator is the toucher)
- OnEndTouch
- Fired when an entity stops touching this trigger. Only entities that passed this trigger's filters will cause this output to fire. (!activator is the exiting entity)
- OnEndTouchAll
- Fires when an entity stops touching this trigger, and no other entities are touching it. Only entities that passed this trigger's filters are considered. (!activator is the last exiting entity)