Difference between revisions of "GetVehicleHeading"

From Onset Developer Wiki
(Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetVehicleHeading(vehicle)}} {{FuncParameters}} {{FuncParam|vehicle|__EDIT_ME__}} {{FuncReturnVal...")
 
 
Line 1: Line 1:
 
{{Info|Function|Server|1.0}}
 
{{Info|Function|Server|1.0}}
  
{{FuncDescription|__EDIT_ME__}}
+
{{FuncDescription|Get the vehicle's heading (rotation).}}
  
 
{{FuncSyntax|GetVehicleHeading(vehicle)}}
 
{{FuncSyntax|GetVehicleHeading(vehicle)}}
  
 
{{FuncParameters}}
 
{{FuncParameters}}
{{FuncParam|vehicle|__EDIT_ME__}}
+
{{FuncParam|vehicle|The vehicle identifier.}}
  
{{FuncReturnValue|__EDIT_ME__}}
+
{{FuncReturnValue|This function returns the vehicle heading in float.}}
  
 
== Example ==
 
== Example ==
__EDIT_ME__
+
<syntaxhighlight lang='Lua'>
 +
location rotation = GetVehicleHeading(vehicleId)
 +
</syntaxhighlight>
  
 
{{RelatedFunctions}}
 
{{RelatedFunctions}}
__EDIT_ME__
+
{{VehicleFunctions}}

Latest revision as of 18:53, 16 January 2020