Follows a target object or a path of waypoints
Author: skymen
Made using c3ide2-framework
To build the addon, run the following commands:
npm i
node ./build.js
To run the dev server, run
npm i
node ./dev.js
The build uses the pluginConfig file to generate everything else. The main files you may want to look at would be instance.js and scriptInterface.js
Property Name | Description |
---|---|
Follow Mode | Direct = follow the target directly, Waypoint = follow a path of waypoints |
Follow Speed | Speed to follow the target at. In Waypoints mode, negative speed will do one waypoint at a time. In lerp mode, this is the lerp speed. |
Follow Distance | Distance to keep from the target |
Set Angle | Set the angle of the follower |
Follow X | Follow the target on the X axis |
Follow Y | Follow the target on the Y axis |
Follow Z | Follow the target on the Z axis |
Follow Angle | Follow the target's angle |
Auto Target Parent | Automatically target the parent of the follower |
Description:
Direct = follow the target directly, Waypoint = follow a path of waypoints
Type:
combo
Options:
- direct: Direct
- waypoint: Waypoint
- lerp: Lerp
Description:
Speed to follow the target at. In Waypoints mode, negative speed will do one waypoint at a time. In lerp mode, this is the lerp speed.
Type:
float
Description:
Distance to keep from the target
Type:
float
Description:
Set the angle of the follower
Type:
check
Description:
Follow the target on the X axis
Type:
check
Description:
Follow the target on the Y axis
Type:
check
Description:
Follow the target on the Z axis
Type:
check
Description:
Follow the target's angle
Type:
check
Description:
Automatically target the parent of the follower
Type:
check
Action | Description |
---|---|
Set follow mode | Set the follow mode |
Set follow speed | Set the follow speed |
Set follow distance | Set the follow distance |
Follow | Follow |
Unfollow | Unfollow |
Set angle to angle of motion | Wether to set the angle to the angle of motion |
Set axes | Wether to follow on the X, Y and Z axis |
Add waypoint | Add a waypoint |
Set waypoint | Set a waypoint |
Remove waypoint | Remove a waypoint |
Clear waypoints | Clear all waypoints |
Description:
Set the follow mode
Name | Type | Description |
---|---|---|
Mode | combo | The follow mode |
Description:
Set the follow speed
Name | Type | Description |
---|---|---|
Speed | number | The follow speed |
Description:
Set the follow distance
Name | Type | Description |
---|---|---|
Distance | number | The follow distance |
Description:
Follow
Name | Type | Description |
---|---|---|
Target | object | The target to follow |
Description:
Unfollow
Description:
Wether to set the angle to the angle of motion
Name | Type | Description |
---|---|---|
Set Angle | boolean | Wether to set the angle to the angle of motion |
Description:
Wether to follow on the X, Y and Z axis
Name | Type | Description |
---|---|---|
X | boolean | Wether to follow on the X axis |
Y | boolean | Wether to follow on the Y axis |
Z | boolean | Wether to follow on the Z axis |
Description:
Add a waypoint
Name | Type | Description |
---|---|---|
X | number | The X position of the waypoint |
Y | number | The Y position of the waypoint |
Z | number | The Z position of the waypoint |
Angle | number | The angle of the waypoint |
Description:
Set a waypoint
Name | Type | Description |
---|---|---|
Index | number | The index of the waypoint to set |
X | number | The X position of the waypoint |
Y | number | The Y position of the waypoint |
Z | number | The Z position of the waypoint |
Angle | number | The angle of the waypoint |
Description:
Remove a waypoint
Name | Type | Description |
---|---|---|
Index | number | The index of the waypoint to remove |
Description:
Clear all waypoints
Condition | Description |
---|---|
Is following | Is following |
Is angle set to angle of motion | Is angle set to angle of motion |
Description:
Is following
Description:
Is angle set to angle of motion
Expression | Description |
---|---|
FollowDistance | Follow distance |
FollowTargetUID | Follow target UID |
Speed | Speed |
AngleOfMotion | Angle of motion |
WayPointX | Waypoint X |
WayPointY | Waypoint Y |
WayPointZ | Waypoint Z |
WayPointAngle | Waypoint angle |
WayPointCount | Waypoint count |
Description:
Follow distance
Return Type:
number
Description:
Follow target UID
Return Type:
number
Description:
Speed
Return Type:
number
Description:
Angle of motion
Return Type:
number
Description:
Waypoint X
Return Type:
number
Name | Type | Description |
---|---|---|
Index | number | The index of the waypoint |
Description:
Waypoint Y
Return Type:
number
Name | Type | Description |
---|---|---|
Index | number | The index of the waypoint |
Description:
Waypoint Z
Return Type:
number
Name | Type | Description |
---|---|---|
Index | number | The index of the waypoint |
Description:
Waypoint angle
Return Type:
number
Name | Type | Description |
---|---|---|
Index | number | The index of the waypoint |
Description:
Waypoint count
Return Type:
number