Space Station 13 - Modules - TypesProc Details

bolt

A lightning bolt drawn between two vectors

Procs

DisposeHandles soft deletion of lightning bolt segments by default after a lightning bolt faded it will be disposed
DrawDraws a bolt of type with a color between two assigned vectors on z or client screen
EffectApplys animation to lightning bolt segment this could be overriden by child types to allow different animations to the lightning bolt by default, a lightning bolt will fade out then be disposed
GetAllTurfsReturns a list of turfs between the bolt's starting vector to the bolt's end vector checking all segments It can return null if no turfs are found.
GetPointReturns a vector at a given fraction 0 to 1, 0 being the start of the bolt and 1 being the end
GetTurfsReturns a list of turfs between the bolt's starting vector to the bolt's end vector because this only checks first and last vectors it returns a form of line between both vectors and can be inaccurate if bolt segments stray too far It can return null if no turfs are found.
NewConstructs the bolt, from vector source to vector dest
RotateRotates last created bolt to a different angle
createBoltReturns a list of segments from vector source to vector dest

Proc Details

Dispose

Handles soft deletion of lightning bolt segments by default after a lightning bolt faded it will be disposed

@param o the object segment to dispose

Draw

Draws a bolt of type with a color between two assigned vectors on z or client screen

Effect

Applys animation to lightning bolt segment this could be overriden by child types to allow different animations to the lightning bolt by default, a lightning bolt will fade out then be disposed

@param o the object segment, each lightning bolt is made of several segments

GetAllTurfs

Returns a list of turfs between the bolt's starting vector to the bolt's end vector checking all segments It can return null if no turfs are found.

GetPoint

Returns a vector at a given fraction 0 to 1, 0 being the start of the bolt and 1 being the end

@param fraction 0 to 1, 0 being the start of the bolt and 1 being the end @return a vector at fraction point of the bolt

GetTurfs

Returns a list of turfs between the bolt's starting vector to the bolt's end vector because this only checks first and last vectors it returns a form of line between both vectors and can be inaccurate if bolt segments stray too far It can return null if no turfs are found.

New

Constructs the bolt, from vector source to vector dest

Rotate

Rotates last created bolt to a different angle

@param angle the new angle of the bolt

createBolt

Returns a list of segments from vector source to vector dest