Vehicle.GetWheelStatus

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This Vehicle class method will return the status of the given wheel. Result will be one of the wheel status codes.

Syntax

  1. int Vehicle.GetWheelStatus( int wheel )

Arguments

  • wheel - The wheel you wish to return the status for. A list of vehicle wheel constants can be found from here

Example

  1.  
  2. function onPlayerCommand( pPlayer, szCommand, szText )
  3. {
  4. if ( szCommand == "wheelstatus" )
  5. {
  6. if ( pPlayer.Vehicle ) MessagePlayer( "Left front wheel status is currently " + pPlayer.Vehicle.GetWheelStatus( WHEEL_FRONTLEFT ), pPlayer );
  7. }
  8. return 1;
  9. }
  10.  

Notes

The function MessagePlayer and event onPlayerCommand were used in this example. More info about them in the corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox