NPC:SetMyFacingAngle

From SA-MP Wiki

Jump to: navigation, search


NPC:SetMyFacingAngle was added in SA-MP 0.3a This function was added in SA-MP 0.3a and will not work in earlier versions!


Set the NPC's facing angle.


Parameters:
(Float:ang)
Float:angThe new NPC's facing angle.


ReturnsThis function doesn't return a specific value


SetMyFacingAngle(0); //NPC faces north

       north (0)
          |
(90) west- -east (270)
          |
       south (180)

Personal tools