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

GetPos

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

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