~~NOTOC~~ <=[[4rpl:start| Index]] ====== GetObjFacingAngle ====== GetObjFacingAngle(<-UID "ObjName" <-pos) ->angle ===== Description ===== Returns the angle in degrees between the obj's forward (the z direction) and the specified vector world position. The vector (X,Y,Z coordinates) are a position in 3D world space. An obj is facing a position when the forward (z direction) of the obj it pointing directly at the position. This function works using world coordinates. The resulting angle is in degrees. ===== Examples ===== GetObjFacingAngle(self "Barrel" V3(42 10 23)) ->angle <=[[4rpl:start| Index]]