Difference between revisions of "03AD"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{OpCode | ini = 03ad=1,set_rubbish %1b:visible/invisible% | description = Enables rubbish (like flying newspapers), on streets. | p1 = integer value (0/1) | gam…')
 
(rewrite)
 
Line 1: Line 1:
{{OpCode
+
[[File:03AD.jpg|thumb|250px|Rubbish in Vice City]]
| ini        = 03ad=1,set_rubbish %1b:visible/invisible%
+
{{Icon|3}} {{Icon|VC}} '''SWITCH_RUBBISH'''
| description = Enables rubbish (like flying newspapers), on streets.
+
<hr />
| p1          = integer value (0/1)
+
<onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode|
| game        = [[GTA III]], [[Vice City]]
+
'''Description'''
}}
+
: Switches the visibility of rubbish
 +
'''Syntax'''
 +
: 03AD: set_rubbish [''int'']
 +
'''Parameter'''
 +
: [''int'']
 +
:: 0 = hide rubbish, 1 = show rubbish
  
== Sanny Builder example ==
+
This opcode switches the visibility of rubbish, which includes newspapers and leaves that fly around the environment on the ground. When rubbish is switched off, rubbish will slowly fade out of view, and when switched on will fade into view. The rubbish uses textures from the <code>particle.txd</code> file: <code>gameleaf01_64</code>, <code>gameleaf02_64</code>, <code>newspaper01_64</code>, <code>newspaper02_64</code>. Rubbish is switched on by default. In Vice City, texture <code>newspaper02_64</code> is switched off by default. Use opcode [[055A]] to switch the texture on.
 +
}}</onlyinclude>
  
<source lang="scm">03AD: set_rubbish 0 //disable</source>
+
== Keywords ==
 +
set, toggle, trash, leaf, leaves, newspaper, newspapers
  
==Keywords==
+
[[Category:OpCodes]]
rubbish, trash, newspapers
 

Latest revision as of 01:33, 12 February 2012

Rubbish in Vice City

GTA III Vice City SWITCH_RUBBISH


Description

Switches the visibility of rubbish

Syntax

03AD: set_rubbish [int]

Parameter

[int]
0 = hide rubbish, 1 = show rubbish

This opcode switches the visibility of rubbish, which includes newspapers and leaves that fly around the environment on the ground. When rubbish is switched off, rubbish will slowly fade out of view, and when switched on will fade into view. The rubbish uses textures from the particle.txd file: gameleaf01_64, gameleaf02_64, newspaper01_64, newspaper02_64. Rubbish is switched on by default. In Vice City, texture newspaper02_64 is switched off by default. Use opcode 055A to switch the texture on.

Keywords

set, toggle, trash, leaf, leaves, newspaper, newspapers