GetVehicleSpeed: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> | <poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> | ||
This function was added in v1.7 | This function was added in v1.7 and will not work on previous versions. | ||
</poem> | </poem> | ||
{{Welcome|desc=Returns the speed of the streamed in vehicle| | {{Welcome|desc=Returns the speed of the streamed in vehicle| | ||
Line 6: | Line 6: | ||
<poem>vehicleid : The ID of the vehicle, whose speed is to be obtained.</poem>| | <poem>vehicleid : The ID of the vehicle, whose speed is to be obtained.</poem>| | ||
retvals=The Speed of the vehicle as Vector on success, Vector(0,0,0) on failure ( invalid vehicleid )| | retvals=The Speed of the vehicle as Vector on success, Vector(0,0,0) on failure ( invalid vehicleid )| | ||
relfuncs=*[[GetVehiclePos]] | relfuncs=*[[GetPlayerSpeed]] | ||
*[[GetVehiclePos]] | |||
*[[GetVehicleRotation]] | *[[GetVehicleRotation]] | ||
*[[GetVehicleTurretRot]] | *[[GetVehicleTurretRot]] | ||
*[[GetVehicleDriver]] | *[[GetVehicleDriver]] | ||
*[[GetVehicleHealth]] | *[[GetVehicleHealth]] | ||
}} | }} |
Latest revision as of 05:51, 25 August 2023
This function was added in v1.7 and will not work on previous versions.
Description:
Returns the speed of the streamed in vehicle
Parameters:
(vehicleid)
vehicleid : The ID of the vehicle, whose speed is to be obtained.
Return Values:
The Speed of the vehicle as Vector on success, Vector(0,0,0) on failure ( invalid vehicleid )
Related Functions
The following functions may be helpful as they relate to this function in one way or another.