MF_AbstractNavigation
Base class for navigation scripts. And also provides a common point of reference for certain variables used by other scripts.
Public Variables
navMode : NavType enum { Waypoint, Target, TargetOrWaypoint }
Waypoint - Will follow a list of waypoints.
Target - Will follow a target picked by a targeting script.
TargetOrWaypoint - Will follow a target. If no target, will follow a list of waypoints.
navTarget : Transform
The current target to approach.
waypointGroup : Transform
A transform assigned to this field will cause it’s children to become a list of waypoints.
waypoints : Transform[]
The list of waypoints. This can be created by assigning a Transform to waypointGroup.
randomWpt : bool
If true, Instead of following waypoints in order, the next navTarget assigned will be chosen at random from waypoints.
curWpt : int
The index of the current waypoint assigned as navTarget in NavType.Waypoint mode.
waypointProx : float
How close to get to approach waypoints before choosing the next one in the list.
targetProx : float
How close to get to approach targets before stopping.
Base class for navigation scripts. And also provides a common point of reference for certain variables used by other scripts.
Public Variables
navMode : NavType enum { Waypoint, Target, TargetOrWaypoint }
Waypoint - Will follow a list of waypoints.
Target - Will follow a target picked by a targeting script.
TargetOrWaypoint - Will follow a target. If no target, will follow a list of waypoints.
navTarget : Transform
The current target to approach.
waypointGroup : Transform
A transform assigned to this field will cause it’s children to become a list of waypoints.
waypoints : Transform[]
The list of waypoints. This can be created by assigning a Transform to waypointGroup.
randomWpt : bool
If true, Instead of following waypoints in order, the next navTarget assigned will be chosen at random from waypoints.
curWpt : int
The index of the current waypoint assigned as navTarget in NavType.Waypoint mode.
waypointProx : float
How close to get to approach waypoints before choosing the next one in the list.
targetProx : float
How close to get to approach targets before stopping.