Skip to content

Commit 7835f77

Browse files
authored
Change moveType to auto by default (#58)
2 parents f86393d + cfe62c7 commit 7835f77

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

omp_npc.inc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -313,21 +313,21 @@ native NPC_GetVirtualWorld(npcid);
313313
* <param name="x">The X coordinate to move to</param>
314314
* <param name="y">The Y coordinate to move to</param>
315315
* <param name="z">The Z coordinate to move to</param>
316-
* <param name="moveType">The movement type (default: NPC_MOVE_TYPE_JOG)</param>
316+
* <param name="moveType">The movement type (default: NPC_MOVE_TYPE_AUTO)</param>
317317
* <param name="moveSpeed">Movement speed (default: NPC_MOVE_SPEED_AUTO)</param>
318318
* <param name="stopRange">Distance to target before stopping (default: 0.2)</param>
319319
* <returns>Returns true on success, false on failure.</returns>
320320
* <seealso name="NPC_StopMove" />
321321
* <seealso name="NPC_IsMoving" />
322322
*/
323-
native NPC_Move(npcid, Float:x, Float:y, Float:z, NPC_MOVE_TYPE:moveType = NPC_MOVE_TYPE_JOG, Float:moveSpeed = NPC_MOVE_SPEED_AUTO, Float:stopRange = 0.2);
323+
native NPC_Move(npcid, Float:x, Float:y, Float:z, NPC_MOVE_TYPE:moveType = NPC_MOVE_TYPE_AUTO, Float:moveSpeed = NPC_MOVE_SPEED_AUTO, Float:stopRange = 0.2);
324324

325325
/**
326326
* <library>omp_npc</library>
327327
* <summary>Makes an NPC move toward and follow a player.</summary>
328328
* <param name="npcid">The ID of the NPC</param>
329329
* <param name="playerid">The ID of the player to move toward</param>
330-
* <param name="moveType">Movement type (default: NPC_MOVE_TYPE_JOG)</param>
330+
* <param name="moveType">Movement type (default: NPC_MOVE_TYPE_AUTO)</param>
331331
* <param name="moveSpeed">Movement speed (default: NPC_MOVE_SPEED_AUTO)</param>
332332
* <param name="stopRange">Distance to stop from player (default: 0.2)</param>
333333
* <param name="updateDelayMS">Position check update delay in milliseconds (default: 500)</param>
@@ -336,7 +336,7 @@ native NPC_Move(npcid, Float:x, Float:y, Float:z, NPC_MOVE_TYPE:moveType = NPC_M
336336
* <seealso name="NPC_Move" />
337337
* <seealso name="NPC_StopMove" />
338338
*/
339-
native NPC_MoveToPlayer(npcid, playerid, NPC_MOVE_TYPE:moveType = NPC_MOVE_TYPE_JOG, Float:moveSpeed = NPC_MOVE_SPEED_AUTO, Float:stopRange = 0.2, updateDelayMS = 500, autoRestart = false);
339+
native NPC_MoveToPlayer(npcid, playerid, NPC_MOVE_TYPE:moveType = NPC_MOVE_TYPE_AUTO, Float:moveSpeed = NPC_MOVE_SPEED_AUTO, Float:stopRange = 0.2, updateDelayMS = 500, autoRestart = false);
340340

341341
/**
342342
* <library>omp_npc</library>
@@ -767,7 +767,7 @@ native
767767
/**
768768
* <library>omp_npc</library>
769769
*/
770-
native bool:NPC_EnterVehicle(npcid, vehicleid, seatid, NPC_MOVE_TYPE:moveType = NPC_MOVE_TYPE_JOG);
770+
native bool:NPC_EnterVehicle(npcid, vehicleid, seatid, NPC_MOVE_TYPE:moveType = NPC_MOVE_TYPE_AUTO);
771771

772772
/**
773773
* <library>omp_npc</library>
@@ -1097,7 +1097,7 @@ native NPC_GetCurrentPathPointIndex(npcid);
10971097
/**
10981098
* <library>omp_npc</library>
10991099
*/
1100-
native bool:NPC_MoveByPath(npcid, pathid, NPC_MOVE_TYPE:moveType = NPC_MOVE_TYPE_JOG, Float:moveSpeed = NPC_MOVE_SPEED_AUTO, bool:reversed = false);
1100+
native bool:NPC_MoveByPath(npcid, pathid, NPC_MOVE_TYPE:moveType = NPC_MOVE_TYPE_AUTO, Float:moveSpeed = NPC_MOVE_SPEED_AUTO, bool:reversed = false);
11011101

11021102
/**
11031103
* <library>omp_npc</library>
@@ -1154,7 +1154,7 @@ native bool:NPC_GetNodeInfo(nodeid, &vehnodes, &pednodes, &navinode);
11541154
/**
11551155
* <library>omp_npc</library>
11561156
*/
1157-
native bool:NPC_PlayNode(npcid, nodeid, NPC_MOVE_TYPE:moveType = NPC_MOVE_TYPE_JOG, Float:speed = NPC_MOVE_SPEED_AUTO, Float:radius = 0.0, bool:setAngle = true);
1157+
native bool:NPC_PlayNode(npcid, nodeid, NPC_MOVE_TYPE:moveType = NPC_MOVE_TYPE_AUTO, Float:speed = NPC_MOVE_SPEED_AUTO, Float:radius = 0.0, bool:setAngle = true);
11581158

11591159
/**
11601160
* <library>omp_npc</library>

0 commit comments

Comments
 (0)