| Property | Value |
|---|---|
| Native Name | ADD_PATROL_ROUTE_NODE |
| Hash | 0x8EDF950167586B7C |
| Return Type | void |
| Parameters | id (int), guardScenario (char*), x1 (float), y1 (float), z1 (float), x2 (float), y2 (float), z2 (float), waitTime (int) |
Description: x2,y2 and z2 are the coordinates to which the ped should look at
Parameters
id(int) — is an integer that "identifies" the route node for linking to the route with ADD_PATROL_ROUTE_LINK.guardScenario(char*) — can be "WORLD_HUMAN_GUARD_STAND" or "StandGuard"x1(float) — destinationy1(float) — destinationz1(float) — destinationx2(float) — coordinates to which the ped should looky2(float) — coordinates to which the ped should lookz2(float) — coordinates to which the ped should lookwaitTime(int) — written in ms
Examples
-- the guard will go toward vector3(1.0, 1.0, 1.0) coordinates looking toward vector3(0.0, 0.0, 0.0) coordinates waiting 1000ms with the WORLD_HUMAN_GUARD_STAND animation
AddPatrolRouteNode(1, "WORLD_HUMAN_GUARD_STAND", vector3(1.0, 1.0, 1.0), vector3(0.0, 0.0, 0.0), 1000)