Skip to content

Commit 5980d0f

Browse files
committed
fix NPC_SetFacingAngle
1 parent 5ad4db9 commit 5980d0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Server/Components/Pawn/Scripting/NPC/Natives.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ SCRIPT_API(NPC_SetFacingAngle, bool(INPC& npc, float angle))
7070
{
7171
auto rotation = npc.getRotation().ToEuler();
7272
rotation.z = angle;
73+
npc.setRotation(rotation);
7374
return true;
7475
}
7576

0 commit comments

Comments
 (0)