cosmic_beam
Vars | |
active | Wether the beam is active or not |
---|---|
check_delay | The delay of when the beam gets checked |
current_beam | The storage for the beam |
current_target | Stores the current beam target |
last_check | Checks the time of the last check |
max_range | The maximum range of the beam |
Procs | |
beam_died | Proc that is only called when the beam fails due to something, so not when manually ended. manual disconnection = lose_target, so it can silently end automatic disconnection = beam_died, so we can give a warning message first |
lose_target | Proc that always is called when we want to end the beam and makes sure things are cleaned up, see beam_died() |
on_beam_hit | What to add when the beam connects to a target |
on_beam_release | What to remove when the beam disconnects from a target |
on_beam_tick | What to process when the beam is connected to a target |
start_beam | Used for starting the beam when a target has been acquired |
Var Details
active
Wether the beam is active or not
check_delay
The delay of when the beam gets checked
current_beam
The storage for the beam
current_target
Stores the current beam target
last_check
Checks the time of the last check
max_range
The maximum range of the beam
Proc Details
beam_died
Proc that is only called when the beam fails due to something, so not when manually ended. manual disconnection = lose_target, so it can silently end automatic disconnection = beam_died, so we can give a warning message first
lose_target
Proc that always is called when we want to end the beam and makes sure things are cleaned up, see beam_died()
on_beam_hit
What to add when the beam connects to a target
on_beam_release
What to remove when the beam disconnects from a target
on_beam_tick
What to process when the beam is connected to a target
start_beam
Used for starting the beam when a target has been acquired