point_event
Jump to navigation
Jump to search

point_event is a point entity available in
No More Room in Hell.
Entity Description
The point_event is a point entity that can listen to events fired from code, and fire an output when it happens. Appears to be a variant of logic_eventlistener, with some features taken out and added in.
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) <targetname>
- The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent.
- Event Name (EventName) <string>
- The names of the events that you want to listen for. Separated by colon. (e.g. player_hurt:game_init)
- Start Disabled (StartDisabled) <boolean>
- Should this entity start disabled?
- Key Name 01 to Key Name 08 (KeyName01 to KeyName08) <string>
- A keyvalue name to search for in detected events. If an event contains this key, then this entity will fire its respective OutValue output with the value.
Flags
Inputs
- Kill
- Kills the entity.
- Toggle
- Toggles this entity from it's current state. Enable -> Disable, and vice versa.
- Enable
- Enable this entity.
- Disable
- Disable this entity.
- SetAllEvents
- Sets all events using the keyvalue's : format. Pass nothing to clear all events.
- AddEvent
- Adds an event to this entity.
Outputs
- OnEventFired
- Fired when the event has been detected.
- OnUser1 to OnUser4
- Fired in response to the FireUser inputs.
- OutEventName
- Outputs the detected event's name in case this entity is listening for multiple events.
- OutValue01 to OutValue08
- Passes the value found in its respective keyname when an event is fired.