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 04-26-2012, 09:46 PM by foxtacles (contribs). It may differ significantly from the current revision.
Retrieves the current position (X, Y, Z coordinates) of an Object.

[top]Declaration

Code cpp:
VAULTSCRIPT vaultmp::Void (*GetPos)(vaultmp::ID, vaultmp::Value&, vaultmp::Value&, vaultmp::Value&);
native GetPos(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;
GetPos(object, X, Y, Z);