Module LaserEmitterUnit

Laser emitter unit.

Emits a laser ray that can be use to detect the passage of a player or on a laser detector unit.

Element class: LaserEmitterUnit

Extends: Element > ElementWithState > ElementWithToggle

Functions

activate () Activates the laser emitter.
deactivate () Deactivates the laser emitter.
isActive () Checks if the laser emitter is active.
setSignalIn (plug, state) Set the value of a signal in the specified IN plug of the element.
getSignalIn (plug) Return the value of a signal in the specified IN plug of the element.


Functions

activate ()
Activates the laser emitter.
deactivate ()
Deactivates the laser emitter.
isActive ()
Checks if the laser emitter is active.

Returns:

    0/1 1 if the laser emitter is active.
setSignalIn (plug, state)
Set the value of a signal in the specified IN plug of the element.

Valid plug names are:

  • "in" for the in signal (seems to have no actual effect when modified this way).

Parameters:

  • plug string A valid plug name to set.
  • state 0/1 The plug signal state
getSignalIn (plug)
Return the value of a signal in the specified IN plug of the element.

Valid plug names are:

  • "in" for the in signal.

Parameters:

  • plug string A valid plug name to query.

Returns:

    0/1 The plug signal state
generated by LDoc 1.5.0 Last updated 2024-09-27 15:22:47