Skip to content

Commit

Permalink
fix NPC_SetFacingAngle
Browse files Browse the repository at this point in the history
  • Loading branch information
AmyrAhmady committed Oct 18, 2024
1 parent 5ad4db9 commit 5980d0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Server/Components/Pawn/Scripting/NPC/Natives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5980d0f

Please sign in to comment.