Squirrel/Server/Functions/Vehicles/SetHandlingData
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with "{{Squirrel/Title|GetTime}} No info == Syntax == <code>Vehicle.SetHandlingData ( float one, float two )</code> == Example == This example set to heavy the vehicle with ID 0...") |
|||
Line 1: | Line 1: | ||
− | {{Squirrel/Title| | + | {{Squirrel/Title|Vehicle.SetHandlingData}} |
No info | No info | ||
Latest revision as of 11:46, 26 August 2014
No info
[edit] Syntax
Vehicle.SetHandlingData ( float one, float two )
[edit] Example
This example set to heavy the vehicle with ID 0
function onPlayerCommand ( pPlayer, szCommand, szParams ) { switch ( szCommand ) { case "heavy": { FindVehicle ( 0 ).SetHandlingData ( 20, 0 ); return; } } }
[edit] Notes
The function FindVehicle and call onPlayerCommand were used in this example. More info about them in corresponding pages.