⇐ Index
GetObjFacingAngle(<-UID “ObjName” <-pos) ->angle
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.
GetObjFacingAngle(self "Barrel" V3(42 10 23)) ->angle
⇐ Index