GetVehiclePos: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Welcome|desc=Returns the position of the streamed in vehicle| params=<source>(vehicleid)</source> <poem>vehicleid : The ID of the vehicle, whose position is to be obtained.</poem>| retvals=The position of the vehicle as Vector on success, Vector(0,0,0) on failure ( invalid vehicleid/not streamed in )}}") |
No edit summary |
||
Line 1: | Line 1: | ||
<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> | |||
This function was added in v1.7 (not released yet) and will not work on previous versions. | |||
</poem> | |||
{{Welcome|desc=Returns the position of the streamed in vehicle| | {{Welcome|desc=Returns the position of the streamed in vehicle| | ||
params=<source>(vehicleid)</source> | params=<source>(vehicleid)</source> | ||
<poem>vehicleid : The ID of the vehicle, whose position is to be obtained.</poem>| | <poem>vehicleid : The ID of the vehicle, whose position is to be obtained.</poem>| | ||
retvals=The position of the vehicle as Vector on success, Vector(0,0,0) on failure ( invalid vehicleid/not streamed in )}} | retvals=The position of the vehicle as Vector on success, Vector(0,0,0) on failure ( invalid vehicleid/not streamed in ) | ||
*[[GetPlayerPos]] | |||
*[[GetVehicleRotation]] | |||
*[[GetVehicleDriver]] | |||
*[[GetVehicleSpeed]] | |||
*[[GetMyPos]] | |||
}} |
Revision as of 17:05, 21 August 2023
This function was added in v1.7 (not released yet) and will not work on previous versions.
Description:
Returns the position of the streamed in vehicle
Parameters:
(vehicleid)
vehicleid : The ID of the vehicle, whose position is to be obtained.
Return Values:
The position of the vehicle as Vector on success, Vector(0,0,0) on failure ( invalid vehicleid/not streamed in )