Skip to main content

NavMeshAgent.Warp(Vector3 newPosition)

Warps agent to the provided position.

Parameters:

NameTypeDescription
newPositionVector3New position to warp the agent to.

Returns:

typeDescription
booleanTrue if agent is successfully warped, otherwise false.

Usage

---@type NavMeshAgent
local navmeshagent;

---@type Vector3
local newPosition;


local val0 = navmeshagent.Warp(newPosition)

Extra Detail

Returns true if successful, otherwise returns false.