GetPickupPos: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 5: Line 5:
params=<source>(pickupid)</source>
params=<source>(pickupid)</source>
pickupid : The ID of the pickup to retrieve the position for.|
pickupid : The ID of the pickup to retrieve the position for.|
retvals=A Vector containing the x, y, and z coordinates of the pickup's position.|
retvals=A Vector containing the x, y, and z coordinates of the pickup's position. Throws error if checkpoint with the ID is not found.|
relfuncs=
relfuncs=
*[[IsPickupStreamedIn]]
*[[IsPickupStreamedIn]]

Latest revision as of 10:42, 15 December 2023

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


Description:
Gets the position of a pickup


Parameters:

(pickupid)

pickupid : The ID of the pickup to retrieve the position for.


Return Values:
A Vector containing the x, y, and z coordinates of the pickup's position. Throws error if checkpoint 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.