The VectorToAngle() NWScript command returns a float that is the number of degrees the indicated vector makes with the positive x-axis. This can be used, for example, as part of converting a location to a facing.
Definition
float VectorToAngle (vector vVector)
vector vVector- The vector making the angle whose size gets returned.
See also
AngleToVector()— converts angles to vectors.