This is an old revision of the document!
⇐ Index
GetObjFacingAngleCell(<-UID “ObjName” <-posX <-posZ) ->angle
Returns the angle in degrees between the obj's forward (the z direction) and the specified world position. The X,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 ignores the y position of the obj. This function works using world coordinates. The resulting angle is in degrees.
GetObjFacingAngleCell(self "Barrel" 42 1)
⇐ Index