SetVehicleAngularVelocity
From SA-MP Wiki
(Difference between revisions)
Revision as of 20:52, 10 August 2010 Doerfler (Talk | contribs) ← Previous diff |
Revision as of 01:26, 5 February 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 1: | Line 1: | ||
{{Scripting}} | {{Scripting}} | ||
- | {{Title}} | ||
{{AddedIn0.3b|function}} | {{AddedIn0.3b|function}} | ||
Line 28: | Line 27: | ||
</pawn> | </pawn> | ||
+ | {{RelatedFunctions}} | ||
{{SetVehicleVelocity}} | {{SetVehicleVelocity}} | ||
{{GetVehicleVelocity}} | {{GetVehicleVelocity}} | ||
[[Category:Scripting Functions]] | [[Category:Scripting Functions]] | ||
+ | |||
+ | [[fr:ru:SetVehicleVelocity]] | ||
[[ru:SetVehicleVelocity]] | [[ru:SetVehicleVelocity]] |
Revision as of 01:26, 5 February 2014
Description:
Sets the angular X, Y and Z velocity of a vehicle
(vehicleid, Float:x, Float:y, Float:z)
vehicleid | The ID of the vehicle to set the velocity of. |
Float:x | The amount of velocity in the angular X direction. |
Float:y | The amount of velocity in the angular Y direction . |
Float:z | The amount of velocity in the angular Z direction. |
Return Values:
This function does not return any specific values.
public OnPlayerCommandText(playerid, cmdtext[]) { if (!strcmp("/spin", cmdtext)) { if(IsPlayerInAnyVehicle(playerid)) SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), 0.0, 0.0, 2.0); return 1; } }
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- SetVehicleVelocity: Set a vehicle's velocity.
- GetVehicleVelocity: Get a vehicle's velocity.