trap_lightning_triggered

This entity creates a bolt of lightning which can be fired on cue by a trigger

Spawnflags:

  1. BOOM: The entity plays the boom of the player’s lightning attack as well as the lightning hit sound each time it is fired.

targetname
The name to use to trigger the lightning.

target
If set, then the lightning bolt will be aimed towards the origin of the entity with a matching targetname (n.b. currently the additional fields targetname2-4 are not supported).

dmg
How much damage a hit from the lightning inflicts. Defaults to 30.

duration
How long the beam should remain active after being triggered.

noise
Specifies a sound to replace the default lightning sound played.

coiled
If set to 1, the entity fires lightning without making any sounds. This overrides the BOOM spawnflag and any custom noise applied.

style
If set to 1, the visible beam matches the style of the shambler. By default the player’s lightning effect is used.

<-Back to the tutorial

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s