GetVehicleTurretRot

From NPC for VCMP 0.4 Servers
Revision as of 16:54, 21 August 2023 by Habi (talk | contribs) (Created page with "{{Welcome|desc=Returns the turret rotation of the vehicle, if it have one| params=<source>(vehicleid)</source> <poem>vehicleid : The ID of the vehicle, whose turret rotation is to be obtained.</poem>| retvals=The Turret rotation of the vehicle as Vector on success, Vector(0,0,0) on failure ( invalid vehicleid/not streamedin ). If the vehicle has no turret, it is expected to return 0 as both the horizontal and vertical turret resulting in Vector(0,0,0) }}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Description:
Returns the turret rotation of the vehicle, if it have one


Parameters:

(vehicleid)

vehicleid : The ID of the vehicle, whose turret rotation is to be obtained.


Return Values:
The Turret rotation of the vehicle as Vector on success, Vector(0,0,0) on failure ( invalid vehicleid/not streamedin ). If the vehicle has no turret, it is expected to return 0 as both the horizontal and vertical turret resulting in Vector(0,0,0)