GetCheckpointPos: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
<poem>checkpointId : The ID of the checkpoint whose position is to be obtained. | <poem>checkpointId : The ID of the checkpoint whose position is to be obtained. | ||
</poem>| | </poem>| | ||
example=<source lang="lua"> | |||
if(IsCheckpointStreamedIn( checkpointId)) | |||
{ | |||
local pos= GetCheckpointPos( checkpointId); | |||
} | |||
</source> | |||
| | |||
retvals=The position of checkpoint as Vector. Throws error if checkpoint with the specified ID is not found.| | retvals=The position of checkpoint as Vector. Throws error if checkpoint with the specified ID is not found.| | ||
relfuncs=*[[GetCheckpointColor]] | relfuncs=*[[GetCheckpointColor]] |
Latest revision as of 09:52, 12 November 2023
Description:
Returns the position of the checkpoint.
Parameters:
( checkpointId )
checkpointId : The ID of the checkpoint whose position is to be obtained.
Return Values:
The position of checkpoint as Vector. Throws error if checkpoint with the specified ID is not found.
Example
if(IsCheckpointStreamedIn( checkpointId)) { local pos= GetCheckpointPos( checkpointId); }
Related Functions
The following functions may be helpful as they relate to this function in one way or another.