Skip to content

Commit 119ab3d

Browse files
authored
Add native functions for NPC angle manipulation
1 parent 7835f77 commit 119ab3d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

omp_npc.inc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,16 @@ native NPC_GetRot(npcid, &Float:x, &Float:y, &Float:z);
291291
*/
292292
native NPC_SetFacingAngle(npcid, Float:angle);
293293

294+
/**
295+
* <library>omp_npc</library>
296+
*/
297+
native NPC_SetAngleToPos(npcid, Float:x, Float:y, Float:z);
298+
299+
/**
300+
* <library>omp_npc</library>
301+
*/
302+
native NPC_SetAngleToPlayer(npcid, playerid);
303+
294304
/**
295305
* <library>omp_npc</library>
296306
*/

0 commit comments

Comments
 (0)