Difference between revisions of "041E"

From GTAMods Wiki
Jump to navigation Jump to search
(updating page)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Icon|trilogy}} '''SET_RADIO_CHANNEL'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
<onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode|
+
| command    = SET_RADIO_CHANNEL
'''Description'''
+
| description = Sets the current radio station
: Sets the current radio station
+
| syntax1    = {{Icon|3}} {{Icon|VC}} 041E: set_radio_station [''int1''] [''int2'']
'''Syntax'''
+
| syntax2    = {{Icon|SA}} 041E: set_radio_station [''int1'']
: {{Icon|3}} {{Icon|VC}} 041E: set_radio_station [''int1''] [''int2'']
+
| p1t        = [''int1'']
: {{Icon|SA}} 041E: set_radio_station [''int1'']
+
| p1d        = Radio station index
'''Parameter'''
+
| p2t        = [''int2'']
: [''int1'']
+
| p2d        = -1 = continue playback, {{hint|other values|041E: set_radio_station 3 3536000 // play ''Indeep - Last Night A D.J. Saved My Life'' on Fever 105
:: Radio station index
+
(cause it starts from 58:56 on vanilla Vice City PC version)
: [''int2'']
+
}} = play time code in ms
:: Station restart, -1 = not start from beginning of station file, {{hint|0|or any value other than -1}} = 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 (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.
 
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>
+
<br />You can't set a new time code if you currently listening to that exact radio station that you trying to set.
  
 
== Keywords ==
 
== Keywords ==
 
set, play, radio, station, channel
 
set, play, radio, station, channel
 
[[Category:OpCodes]]
 

Latest revision as of 01:10, 18 December 2019

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]
-1 = continue playback, other values = play time code in ms

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.
You can't set a new time code if you currently listening to that exact radio station that you trying to set.

Keywords

set, play, radio, station, channel