Difference between revisions of "0485"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Icon|VC}} {{Icon|SA}} '''IS_PC_VERSION''' <hr /> '''Description''' : Checks if the game is PC version '''Syntax''' : 0485:   pc_version '''Parameter''' : [''none''] Th...")
 
m
Line 1: Line 1:
{{Icon|VC}} {{Icon|SA}} '''IS_PC_VERSION'''
+
{{OpCode
<hr />
+
| games      = {{Icon|VC}} {{Icon|SA}}
'''Description'''
+
| command    = IS_PC_VERSION
: Checks if the game is PC version
+
| description = Checks if the game is PC version
'''Syntax'''
+
| syntax1    = 0485: &nbsp; pc_version
: 0485: &nbsp; pc_version
+
| p1t        = ''none''
'''Parameter'''
+
}}
: [''none'']
 
  
 
This conditional opcode always returns true as the result for the PC version of the game. Otherwise, it always returns false. The return result is hardcoded into the game. Most mods generally support the PC version of the games so this opcode can generally be used to return true when returning from a [[0050|gosub]] or an [[0AB1|SCM function]]. This opcode was never called in the [[Main.scm|original script]] of VIce City.
 
This conditional opcode always returns true as the result for the PC version of the game. Otherwise, it always returns false. The return result is hardcoded into the game. Most mods generally support the PC version of the games so this opcode can generally be used to return true when returning from a [[0050|gosub]] or an [[0AB1|SCM function]]. This opcode was never called in the [[Main.scm|original script]] of VIce City.
Line 12: Line 11:
 
== Keywords ==
 
== Keywords ==
 
PC, version, game, return, true
 
PC, version, game, return, true
 
[[Category:OpCodes]]
 

Revision as of 07:13, 7 November 2016

Vice City San Andreas IS_PC_VERSION


Description
Checks if the game is PC version
Syntax
0485:   pc_version
Parameter
none

This conditional opcode always returns true as the result for the PC version of the game. Otherwise, it always returns false. The return result is hardcoded into the game. Most mods generally support the PC version of the games so this opcode can generally be used to return true when returning from a gosub or an SCM function. This opcode was never called in the original script of VIce City.

Keywords

PC, version, game, return, true