Difference between revisions of "041E"

From GTAMods Wiki
Jump to navigation Jump to search
(created page)
 
(updating page)
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''SET_RADIO_CHANNEL'''
| ini        = 041E=2,{{Hint|%1d%|parameter 1: integer}} {{Hint|%2d%|parameter 2: integer}}
+
<hr />
| description = Sets the current radio station
+
<onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode|
| p1          = Radio station ID
+
'''Description'''
| p2          = Station restart
+
: Sets the current radio station
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
'''Syntax'''
}}
+
: {{Icon|3}} {{Icon|VC}} 041E: set_radio_station [''int1''] [''int2'']
This opcode sets the current radio station to be played while in a vehicle that supports the station. When a value of ''-1'' is set for parameter 2, the radio station will not start from the beginning. Any other value will restart the station from the beginning of the radio station file.
+
: {{Icon|SA}} 041E: set_radio_station [''int1'']
 +
'''Parameter'''
 +
: [''int1'']
 +
:: Radio station index
 +
: [''int2'']
 +
:: Station restart, -1 = not start from beginning of station file, {{hint|0|or any value other than -1}} = start from beginning
  
In Vice City, the station ID follows closely with the [[List of radio stations (VC)|list of radio stations]] except ID 9. If ID 9 is used, the station sets itself to 10, preventing the MP3 station from being played with this opcode.
+
This opcode sets the current radio station to be played while in a vehicle that supports the station. In Vice City, the station index follows closely with the [[List of radio stations (VC)|list of radio stations]] except index 9. If index 9 is used, the station sets itself to 10, preventing the MP3 station from being played with this opcode.
 +
}}</onlyinclude>
  
==Keywords==
+
== Keywords ==
set, play, radio, station
+
set, play, radio, station, channel
 +
 
 +
[[Category:OpCodes]]

Revision as of 23:51, 4 January 2012

GTA III Vice City San Andreas SET_RADIO_CHANNEL


Description

Sets the current radio station

Syntax

GTA III Vice City 041E: set_radio_station [int1] [int2]
San Andreas 041E: set_radio_station [int1]

Parameter

[int1]
Radio station index
[int2]
Station restart, -1 = not start from beginning of station file, 0 = start from beginning

This opcode sets the current radio station to be played while in a vehicle that supports the station. In Vice City, the station index follows closely with the list of radio stations except index 9. If index 9 is used, the station sets itself to 10, preventing the MP3 station from being played with this opcode.

Keywords

set, play, radio, station, channel