Player.VehicleSeat

From Liberty Unleashed Wiki
Revision as of 16:20, 25 October 2010 by Force (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

This function returns the seat that the player is sat in.

Syntax

  1. int player.VehicleSeat

Arguments

  • none

Example

This will tell the player what seat they are currently sat in when they type '/seat'.

  1.  
  2. function onPlayerCommand( pPlayer, szCommand, szText )
  3. {
  4. if ( szCommand == "seat" )
  5. {
  6. if ( pPlayer.Vehicle ) MessagePlayer( "Your current vehicle seat is - " + pPlayer.VehicleSeat, 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