Get Position Along Path


Description

This action will get the position of an instance along a path. The returned value is normalised from 0 - 1, so if you get a result of, for example, 0.5, the instance exactly in the middle of the path. Note that you must have called the Start Following Path action to assign a path to the instance for this action to return a value other than 0. The returned value will be stored in the target variable you give, or you can flag the variable as a temporary local variable to create it and assign the value.


Action Syntax:

Get Position Along Path Syntax


Arguments:

Argument Description
Target The target variable to hold the returned path position


Example:

Get Position Along Path Example
The above action block code gets the current position on the assigned path for the instance and if it is less than 0.5 it is set to 0.5.