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

GetAngle

This is an old revision of this page, as edited 09-28-2011, 06:02 PM by . It may differ significantly from the current revision.
Retrieves the last known angle (X, Y, Z coordinates) of an [[Object]].

== Declaration ==
<code cpp>
VAULTSCRIPT void (*GetAngle)(vaultmp::ID, vaultmp::Value&, vaultmp::Value&, vaultmp::Value&);
native GetAngle(ID, &Float:X, &Float:Y, &Float:Z);
</code>
== 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)

== Return value ==

None.

== Usage example (C++) ==

<code cpp>
vaultmp::Value X, Y, Z;
GetAngle(object, X, Y, Z);
</code>