Squirrel/Server/Functions/Vehicles/LightState

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with '{{Squirrel/Title|Vehicle.LightState}} This ''Vehicle'' class member returns or sets the status of the lights. Possible values are listed [[Squirrel/Server/Constants#Vehicle_Light…')

Revision as of 01:52, 27 September 2010

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

This Vehicle class member returns or sets the status of the lights. Possible values are listed here.

Syntax

You can either return or set a new value using this member:

  1. int Vehicle.LightState
  1. Vehicle.LightState = int lights

Arguments

  • lights - This is the new state for the lights.
    • LIGHTSTATE_AUTO - lights are turned on and off automatically depending of the time and weather
    • LIGHTSTATE_ON - vehicle lights are always on
    • LIGHTSTATE_OFF - vehicle lights are always off

Example 1. Returning the value

This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o
  1.  
  2. -- todo
  3.  

Notes

Example notes and used functions here.

Example 2. Setting a new value

This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o
  1.  
  2. -- todo
  3.  

Notes

Example notes and used functions here.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox