Difference between revisions of "0216"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "thumb|300px|A Cabbie with its roof light switched on {{Icon|t}} '''SET_TAXI_LIGHTS''' <hr /> '''Description''' : Sets the taxi roof light '''Syntax''' : 0216...")
 
 
Line 1: Line 1:
 
[[File:0216.jpg|thumb|300px|A Cabbie with its roof light switched on]]
 
[[File:0216.jpg|thumb|300px|A Cabbie with its roof light switched on]]
{{Icon|t}} '''SET_TAXI_LIGHTS'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = SET_<wbr>TAXI_<wbr>LIGHTS
: Sets the taxi roof light
+
| description = Sets the taxi roof light
'''Syntax'''
+
| syntax1    = 0216: set_car [''car handle''] taxi_available_light_to [''int'']
: 0216: set_car [''car handle''] taxi_available_light_to [''int'']
+
| p1t        = [''car handle'']
'''Parameter'''
+
| p1d        = The handle of the vehicle
: [''car handle'']
+
| p2t        = [''int'']
:: The handle of the vehicle
+
| p2d        = 0 = roof light off (default), {{hint|1|or any value other than 0}} = roof light on
: [''int'']
+
}}
:: 0 = roof light off (default), {{hint|1|or any value other than 0}} = roof light on
 
  
This opcode sets the roof light of the taxi. It has no effect on vehicles without a roof light. Roof lights are [[024F|coronas]] with the "coronastar" texture, RGB value 128,128,0 (yellow), size 0.8, and emit yellow light on entities. The roof light switches off when the vehicle explodes but calling the opcode again can switch back on the roof light on the wrecked vehicle.
+
This opcode sets the roof light of the taxi. This only has an effect on [[02DE|taxi vehicles]]. Roof lights are [[024F|coronas]] with the "coronastar" texture, RGB value 128,128,0 (yellow), size 0.8, and emit yellow light on entities. The roof light switches off when the vehicle explodes but calling the opcode again can switch back on the roof light on the wrecked vehicle.
  
 
== Keywords ==
 
== Keywords ==
 
set, toggle, taxi, cab, cabbie, available, light, lights
 
set, toggle, taxi, cab, cabbie, available, light, lights
 
[[Category:OpCodes]]
 

Latest revision as of 01:22, 31 August 2017

A Cabbie with its roof light switched on

GTA III Vice City San Andreas SET_TAXI_LIGHTS


Description
Sets the taxi roof light
Syntax
0216: set_car [car handle] taxi_available_light_to [int]
Parameter
[car handle]
The handle of the vehicle
[int]
0 = roof light off (default), 1 = roof light on

This opcode sets the roof light of the taxi. This only has an effect on taxi vehicles. Roof lights are coronas with the "coronastar" texture, RGB value 128,128,0 (yellow), size 0.8, and emit yellow light on entities. The roof light switches off when the vehicle explodes but calling the opcode again can switch back on the roof light on the wrecked vehicle.

Keywords

set, toggle, taxi, cab, cabbie, available, light, lights