ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getPedWalkTarget

Function

getPedWalkTarget

ServerPedsTrilogy Hub only

Returns the walk target set by setPedWalkTo.

Syntax

float, float, float getPedWalkTarget(ped ped)

Arguments

pedped
The NPC.

Returns

x, y, z of the target; false if the NPC is not walking anywhere.

Example

if not getPedWalkTarget(guard) then setPedWalkTo(guard, 1540, -1675, 16) end

See also