OpenGarage

From Liberty Unleashed Wiki
Revision as of 23:44, 19 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 opens the given garage door. List of garage IDs can be found from here.

Syntax

  1. bool OpenGarage( int garage )

Arguments

  • garage - This is the ID of the garage you want to open. List of garage IDs can be found from here

Example

This will open the Portland hideout garage when the player types /opensesame

  1.  
  2. function onPlayerCommand( pPlayer, szCommand, szText )
  3. {
  4. if ( szCommand == "opensesame" )
  5. {
  6. OpenGarage( PORTLAND_HIDEOUT_GARAGE );
  7. }
  8. return 1;
  9. }
  10.  

Notes

The event onPlayerCommand was used in this example. More info about this in the corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox