IPathable
An interface that defines a pathable object.
Fields
Field | Type | Description |
---|---|---|
Guid | any | The pathable's GUID. |
Behaviors | IBehavior[] | The behaviors associated with the pathable. |
BehaviorFiltered | boolean | Read-Only Whether the pathable is actively filtered by a behavior. |
TriggerRange | number | The pathable's trigger range. |
DistanceToPlayer | number | Distance to the player. |
MapId | integer | Read-Only The Map ID of the pathable. |
Category | Category | Read-Only The category the pathable belongs to. |
Functions
Function | Description |
---|---|
Focus | Focuses the pathable. |
Unfocus | Unfocuses the pathable. |
Interact | Triggers the pathable. |
IPathable:Focus()
Focuses the pathable.
Usage
script.lua
somePathable:Focus()
IPathable:Unfocus()
Unfocuses the pathable.
Usage
script.lua
somePathable:Unfocus()
IPathable:Interact(isAutoTriggered)
Triggers the pathable.
Parameters
Parameter | Type | Description |
---|---|---|
isAutoTriggered | boolean | Indicates if the trigger was from an auto trigger or if it was manually triggered. |
Usage
script.lua
somePathable:Interact(true)