Skip to content

Commit f86393d

Browse files
authored
add NPC_GetPosMovingTo and NPC_GetCustomSkin (#57)
1 parent 6fa585b commit f86393d

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

omp_npc.inc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,20 @@ native NPC_SetVelocity(npcid, Float:x, Float:y, Float:z);
385385
*/
386386
native NPC_GetVelocity(npcid, &Float:x, &Float:y, &Float:z);
387387

388+
/**
389+
* <library>omp_npc</library>
390+
* <summary>Gets the position that the NPC is currently moving toward.</summary>
391+
* <param name="npcid">The ID of the NPC</param>
392+
* <param name="x">Variable to store the X coordinate of the target position, passed by reference</param>
393+
* <param name="y">Variable to store the Y coordinate of the target position, passed by reference</param>
394+
* <param name="z">Variable to store the Z coordinate of the target position, passed by reference</param>
395+
* <returns>Returns true on success, false on failure.</returns>
396+
* <seealso name="NPC_Move" />
397+
* <seealso name="NPC_IsMoving" />
398+
* <seealso name="NPC_GetPos" />
399+
*/
400+
native NPC_GetPosMovingTo(npcid, &Float:x, &Float:y, &Float:z);
401+
388402
/*
389403
native # Appearance();
390404
native Appearance(
@@ -407,6 +421,16 @@ native NPC_SetSkin(npcid, skinid);
407421
*/
408422
native NPC_GetSkin(npcid);
409423

424+
/**
425+
* <library>omp_npc</library>
426+
* <summary>Gets the custom skin ID of an NPC.</summary>
427+
* <param name="npcid">The ID of the NPC</param>
428+
* <returns>Returns the custom skin ID of the NPC, or -1 if the NPC has no custom skin or is invalid.</returns>
429+
* <seealso name="NPC_SetSkin" />
430+
* <seealso name="NPC_GetSkin" />
431+
*/
432+
native NPC_GetCustomSkin(npcid);
433+
410434
/**
411435
* <library>omp_npc</library>
412436
*/

0 commit comments

Comments
 (0)