Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

public function Warp(newPosition: Vector3): bool;
public bool Warp(Vector3 newPosition);

Parameters

newPositionNew position to warp the agent to.

Returns

bool True if agent is successfully warped, otherwise false.

Description

Warps agent to the provided position.

Returns true if successful, otherwise returns false.