Behavior : Light

Author:Rex.Rainbow

Download

Properties

Initial state

  • Whether to initially have the behavior enabled or disabled.
    • Options : ["Disabled","Enabled"]

Max width

  • The maximum width in pixels.

Obstacles

  • Choose whether solids obstruct or if to use custom objects added by events.
    • Options : ["Solids","Custom"]

Actions

Configure

Action:Set maximum width

  • Set the maximum width in pixels.
    • Width ( number ) : Maximum width in pixels.

Manual

Action:Point to solids

  • Extend width until hit any solid object.

Action:Point to object

  • Extend width until hit any specfic object.
    • Obstacle ( object ) : Choose an object to add as an obstacle.

Tick

Action:Set enabled

  • Set whether this behavior is enabled.
    • State ( Combo ) : Set whether to enable or disable the behavior.
      • Options : ["Disabled","Enabled"]

Action:Add obstacle

  • Add a custom object as an obstacle to line-of-sight.
    • Obstacle ( object ) : Choose an object to add as an obstacle, obstructing line-of-sight.

Action:Clear obstacles

  • Remove all added obstacle objects.

Expressions

Configure

Expression:MaxWidth

  • Get maximum width setting.

Hit

Expression:HitX

  • Get hit X co-ordinate.

Expression:HitY

  • Get hit Y co-ordinate.

Expression:HitUID

  • Get UID of hit object.

Reflection

Expression:ReflectionAngle

  • Get angle of refection.

Conditions

Hit

Condition:Hit

  • Retrun true if hit object.