Behavior : Light
Author:Rex.Rainbow
- Adjust width until hit obstacle.
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
Expression:HitY
Expression:HitUID
Reflection
Expression:ReflectionAngle
Conditions
Hit
Condition:Hit
- Retrun true if hit object.