From 5980d0f348e3d3c529903bc2a40401193c90f629 Mon Sep 17 00:00:00 2001 From: iAmir Date: Fri, 18 Oct 2024 19:39:52 +0330 Subject: [PATCH] fix NPC_SetFacingAngle --- Server/Components/Pawn/Scripting/NPC/Natives.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Server/Components/Pawn/Scripting/NPC/Natives.cpp b/Server/Components/Pawn/Scripting/NPC/Natives.cpp index f1806b2a6..0a83985f3 100644 --- a/Server/Components/Pawn/Scripting/NPC/Natives.cpp +++ b/Server/Components/Pawn/Scripting/NPC/Natives.cpp @@ -70,6 +70,7 @@ SCRIPT_API(NPC_SetFacingAngle, bool(INPC& npc, float angle)) { auto rotation = npc.getRotation().ToEuler(); rotation.z = angle; + npc.setRotation(rotation); return true; }