Click or drag to resize

LightningBeamSpellScript Fields

The LightningBeamSpellScript type exposes the following members.

Fields
  NameDescription
Public fieldCollisionAudioClips
Collision audio clips. One will be chosen at random and played one shot with CollisionAudioSource.
(Inherited from LightningSpellScript.)
Public fieldCollisionAudioSource
Collision audio source
(Inherited from LightningSpellScript.)
Public fieldCollisionCallback
Callback for collision events
Public fieldCollisionForce
The force to explode with when there is a collision
(Inherited from LightningSpellScript.)
Public fieldCollisionForceMode
Collision force mode
(Inherited from LightningSpellScript.)
Public fieldCollisionIsExplosion
Whether the collision is an exploision. If not explosion, collision is directional.
(Inherited from LightningSpellScript.)
Public fieldCollisionMask
The layers that the spell should collide with
(Inherited from LightningSpellScript.)
Public fieldCollisionParticleSystem
The particle system for collisions. For best effects, this should emit particles in bursts at time 0 and not loop.
(Inherited from LightningSpellScript.)
Public fieldCollisionRadius
The radius of the collision explosion
(Inherited from LightningSpellScript.)
Public fieldCollisionVolumeRange
Collision sound volume range.
(Inherited from LightningSpellScript.)
Public fieldCooldown
The cooldown in seconds. Once cast, the spell must wait for the cooldown before being cast again.
(Inherited from LightningSpellScript.)
Public fieldDirection
The direction of the spell. Should be normalized. Does not change unless explicitly modified.
(Inherited from LightningSpellScript.)
Public fieldDuration
The duration in seconds that the spell will last. Not all spells support a duration. For one shot spells, this is how long the spell cast / emission light, etc. will last.
(Inherited from LightningSpellScript.)
Public fieldEmissionLight
Light to illuminate when spell is cast
(Inherited from LightningSpellScript.)
Public fieldEmissionParticleSystem
Emission particle system. For best results use world space, turn off looping and play on awake.
(Inherited from LightningSpellScript.)
Public fieldEmissionSound
Emission sound
(Inherited from LightningSpellScript.)
Public fieldEndPointRandomization
Give the end point some randomization
Public fieldLightningPathScript
The lightning path script creating the beam of lightning
Public fieldMaxDistance
The maximum distance of the spell
(Inherited from LightningSpellScript.)
Public fieldSpellEnd
The end point of the spell. Set this to an empty game object. This will change depending on things like collisions, randomness, etc. Not all spells need an end object, but create this anyway to be sure.
(Inherited from LightningSpellScript.)
Public fieldSpellStart
The start point of the spell. Set this to a muzzle end or hand.
(Inherited from LightningSpellScript.)
Top
See Also