Difference between revisions of "06D7"

From GTAMods Wiki
Jump to navigation Jump to search
 
(new template)
Line 1: Line 1:
<code>06D7=1,%1h%</code><br>
+
{{Icon|SA}} '''SWITCH_RANDOM_TRAINS'''
'''Description''': Sets train traffic<br>
+
<hr />
'''Parameter 1''': Flag<br>
+
<onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode|
'''Supports''': San Andreas<br>
+
'''Description'''
 +
: Enables [[train]] traffic
 +
'''Syntax'''
 +
: 06D7: enable_train_traffic [''int'']
 +
'''Parameter'''
 +
: [''int'']
 +
:: 0 = off, {{hint|1|or any value other than 0}} = on
 +
'''Native analog'''
 +
: [[SWITCH_RANDOM_TRAINS]]
  
This opcode can set all train traffic.
+
This opcode either enable or disable train traffic.
 +
}}</onlyinclude>
  
==Flags==
+
== Keywords ==
'''Flag 0''': Disables train traffic<br>
+
set, toggle, enable, train, traffic
'''Flag 1''': Enables train traffic
 
 
 
==Keywords==
 
set, toggle, train, traffic
 
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Revision as of 23:06, 1 June 2015

San Andreas SWITCH_RANDOM_TRAINS


Description

Enables train traffic

Syntax

06D7: enable_train_traffic [int]

Parameter

[int]
0 = off, 1 = on

Native analog

SWITCH_RANDOM_TRAINS

This opcode either enable or disable train traffic.

Keywords

set, toggle, enable, train, traffic