trap_lightning

This entity creates a bolt of lightning which fires repeatedly without a trigger.

Spawnflags:

  1. RANDOM: The time between bolts of lightning will vary randomly between 0 and wait seconds (see below).
  2. BOOM: The entity plays the boom of the player’s lightning attack as well as the lightning hit sound each time it is fired.

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.

nextthink
Delay before first bolt is fired, allows for staggering of traps through a level.

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

wait
The length of time after one bolt of lightning starts that the next one will fire. If the RANDOM spawnflag is applied, this is the upper limit.

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

Advertisements

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