Squirrel/Server/Functions/Vehicles/SetHandlingData

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(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|GetTime}}
+
{{Squirrel/Title|Vehicle.SetHandlingData}}
 
No info
 
No info
  

Latest revision as of 11:46, 26 August 2014

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

No info

[edit] Syntax

  1. Vehicle.SetHandlingData ( float one, float two )

[edit] Example

This example set to heavy the vehicle with ID 0

  1.  
  2. function onPlayerCommand ( pPlayer, szCommand, szParams ) {
  3.  
  4. switch ( szCommand ) {
  5.  
  6. case "heavy": {
  7.  
  8. FindVehicle ( 0 ).SetHandlingData ( 20, 0 );
  9. return;
  10. }
  11. }
  12. }
  13.  

[edit] Notes

The function FindVehicle and call onPlayerCommand were used in this example. More info about them in corresponding pages.

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox