GetVehicleRespawnRotation: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Server function}} __NOTOC__ {{New feature/item|3.0156|1.5.5|14053|This function retrieves the respawn rotation of a vehicle.}} ==Syntax== <syntaxhighlight lang="lua"> f...")
 
(There are no commas in return types in other function syntax section)
Line 5: Line 5:
==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
float, float, float getVehicleRespawnRotation ( element theVehicle )
float float float getVehicleRespawnRotation ( element theVehicle )
</syntaxhighlight>
</syntaxhighlight>
{{OOP||[[vehicle]]:getRespawnRotation|respawnRotation}}
{{OOP||[[vehicle]]:getRespawnRotation|respawnRotation}}

Revision as of 18:37, 14 February 2021

This function retrieves the respawn rotation of a vehicle.

Syntax

float float float getVehicleRespawnRotation ( element theVehicle )

OOP Syntax Help! I don't understand this!

Method: vehicle:getRespawnRotation(...)
Variable: .respawnRotation


Required Arguments

  • theVehicle: The vehicle which you'd like to retrieve the respawn rotation of.

Returns

Returns three floats indicating the respawn rotation of the vehicle, x, y and z respectively.

Example

Accessories-text-editor.png Script Example Missing Function GetVehicleRespawnRotation needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.
-- TODO


See Also