This site has been archived and made available for preservation purposes. No edits can be made.

GetAngle

Retrieves the current angle (X, Y, Z coordinates) of an Object.

[top]Declaration

Code cpp:
VAULTSCRIPT vaultmp::Void (*GetAngle)(vaultmp::ID, vaultmp::Value&, vaultmp::Value&, vaultmp::Value&);
native GetAngle(ID, &Float:X, &Float:Y, &Float:Z);

[top]Parameters

vaultmp::ID - the ID of the Object
vaultmp::Value& - a reference to a Value (X coordinate)
vaultmp::Value& - a reference to a Value (Y coordinate)
vaultmp::Value& - a reference to a Value (Z coordinate)

[top]Return value

None.

[top]Usage example (C++)

Code cpp:
vaultmp::Value X, Y, Z;
GetAngle(object, X, Y, Z);