Jump to content

Entities Trigger

From Kingpin Wiki

trigger_always

Map Entity Color: (.5 .5 .5) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

This trigger will always fire. It is activated by the world.

Keys

Key Description
target Entity to trigger.

trigger_counter

Map Entity Color: (.5 .5 .5) (COLOR PREVIEW) Dimensions: Size of map components used

Acts as an intermediary for an action that takes multiple inputs. If the cvar 'developer' is '1' and 'nomessage' is unset, each time this entity is triggered, the message "X more to go..." will appear (and "Armageddon virus installed successfully" when the sequence is completed).

Spawnflags

Flag Name Description
1 NOMESSAGE Disable messages display when triggered.

Keys

Key Description
killtarget ID of the entity to delete when triggered.
count Number of times this trigger must be activated before triggering its targets (default=2).
targetname This entity's ID.
target Entity to trigger.

trigger_elevator

Map Entity Color: (0.3 0.1 0.6) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

Code leftovers from Q2, train manager (gives a func_train's a new 'pathtarget' inherited from the activator entity).

Keys

Key Description
targetname This entity's ID.
target func_train's ID.

trigger_gravity

Map Entity Color: (.5 .5 .5) (COLOR PREVIEW) Dimensions: Size of map components used

Code leftovers from Q2, changes the touching entities gravity.

Keys

Key Description
gravity Gravity factor (default=1.0).

trigger_hurt

Map Entity Color: (.5 .5 .5) (COLOR PREVIEW) Dimensions: Size of map components used

Any entity taking damage touching this trigger will lose 'dmg' health points each server frame (or every second if SLOW spawnflag is set).

Spawnflags

Flag Name Description
1 START_OFF Set default state to OFF.
2 TOGGLE Maintain state, switch only when triggered.
4 SILENT No sound emitted in action.
8 NO_PROTECTION Armor is not taken into account when inflicting damage.
16 SLOW Slow...

Keys

Key Description
dmg Damages inflicted when touched (default=5).

trigger_hurt_electric

Map Entity Color: (.5 .5 .5) (COLOR PREVIEW) Dimensions: Size of map components used

Any entity taking damage touching this trigger will be electrocuted and lose 'dmg' health points each server frame (or every second if SLOW spawnflag is set).

Spawnflags

Flag Name Description
1 START_OFF Set default state to OFF.
2 TOGGLE Maintain state, switch only when triggered.
4 SILENT No sound emitted in action.
8 NO_PROTECTION Armor is not taken into account when inflicting damage.
16 SLOW Slow...

Keys

Key Description
dmg Damages inflicted when touched (default=5).

trigger_hurt_fire

Map Entity Color: (.5 .5 .5) (COLOR PREVIEW) Dimensions: Size of map components used

Any entity taking damage touching this trigger will burn and lose 'dmg' health points each server frame (or every second if SLOW spawnflag is set).

Spawnflags

Flag Name Description
1 START_OFF Set default state to OFF.
2 TOGGLE Maintain state, switch only when triggered.
4 SILENT No sound emitted in action.
8 NO_PROTECTION Armor is not taken into account when inflicting damage.
16 SLOW Slow...

Keys

Key Description
dmg Damages inflicted when touched (default=5).

trigger_key

Map Entity Color: (.5 .5 .5) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

A relay trigger that only fires its targets if the player has the proper key.

Keys

Key Description
target Targeted entity's ID.
targetname This entity's ID.
item Item required (pickup name).

trigger_monsterjump

Map Entity Color: (.5 .5 .5) (COLOR PREVIEW) Dimensions: Size of map components used

Walking monsters that touch this entity will jump in the direction of the trigger's angle.

Keys

Key Description
angle Thrown direction.
speed Speed thrown forward (default=200).
height Speed thrown upwards (default=200).

trigger_multiple

Map Entity Color: (.5 .5 .5) (COLOR PREVIEW) Dimensions: Size of map components used

Repeatable trigger. Must be targeted at one or more entities.

Spawnflags

Flag Name Description
1 MONSTER Monsters can trigger this entity.
2 NOT_PLAYER Player cannot trigger this entity.
4 TRIGGERED Must be triggered before use.

Keys

Key Description
target Target entity ID.
targetname This entity's ID.
killtarget ID of the entity to delete when triggered.
wait Seconds between triggerings (default=.2).
delay Wait before triggering targeted entities.
message String to be displayed when triggered.
sounds Sound emitted on trigger -- 0=silent, 1=secret.wav, 2=talk.wav, 3=trigger1.wav (default=0).

trigger_once

Map Entity Color: (.5 .5 .5) (COLOR PREVIEW) Dimensions: Size of map components used

Triggers once, then removes itself. You must set the key 'target' to the name of another object in the level that has a matching 'targetname'. If TRIGGERED is set, this trigger must be triggered before it is live.

Spawnflags

Flag Name Description
1 MONSTER Monsters can trigger this entity.
2 NOT_PLAYER Player cannot trigger this entity.
4 TRIGGERED Must be triggered before use.
8 SCENERIC

Keys

Key Description
target Target entity ID.
targetname This entity's ID.
killtarget ID of the entity to delete when triggered.
delay Wait before triggering targeted entities.
message String to be displayed when triggered.
sounds Sound emitted on trigger -- 0=silent, 1=secret.wav, 2=talk.wav, 3=trigger1.wav (default=0).

trigger_push

Map Entity Color: (.5 .5 .5) (COLOR PREVIEW) Dimensions: Size of map components used

Pushes the player.

Spawnflags

Flag Name Description
1 PUSH_ONCE Push once only.

Keys

Key Description
angle Push direction.
speed Push speed (default=1000).

trigger_relay

Map Entity Color: (.5 .5 .5) (COLOR PREVIEW) Dimensions: (-8 -8 -8) (8 8 8)

This fixed size trigger cannot be touched, it can only be fired by other events.

Keys

Key Description
delay Time in seconds before triggering the target.
targetname This entity's ID.
target Target entity.
killtarget ID of the entity to delete when triggered.

trigger_unlock

Map Entity Color: (.5 .5 .5) (COLOR PREVIEW) Dimensions: Size of map components used

Player will unlock a targeted door when this brush is touched, and it can also be triggered (door's 'key' must be '-1').

Keys

Key Description
targetname This entity's ID
target Target ID to match door