GetObjectPos: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This function was added in v1.7 beta and will not work in previous versions. </poem> {{Welcome|desc=Gets the position of a object| params=<source>(objectid)</source> objectid : The ID of the object to retrieve the position for.| retvals=A Vector containing the x, y, and z coordinates of the object's position. Throws error if object with the ID is not found| relfuncs= *[[IsObjectStreamedIn]...")
 
(No difference)

Latest revision as of 14:48, 14 December 2023

This function was added in v1.7 beta and will not work in previous versions.


Description:
Gets the position of a object


Parameters:

(objectid)

objectid : The ID of the object to retrieve the position for.


Return Values:
A Vector containing the x, y, and z coordinates of the object's position. Throws error if object with the ID is not found



Related Functions

The following functions may be helpful as they relate to this function in one way or another.