Vehicle.SetHandlingData

From Liberty Unleashed Wiki
Revision as of 11:46, 26 August 2014 by XMerkel 2 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

No info

Syntax

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

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.  

Notes

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

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox