NPC:SetMyFacingAngle

From SA-MP Wiki

Jump to: navigation, search

NPC:SetMyFacingAngle


Warning: This function was added in SA-MP version 0.3. It is not available in previous versions.


Face an NPC to a specific angle.


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


This function does not return a specific value.


SetMyFacingAngle(0); //NPC faces north

       north (0)
          |
(270)west- -east (90)      (Good way to remember: Never Eat Shredded Wheat)
          |
       south (180)

Personal tools