Difference between revisions of "000D"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{OpCode | ini = 000D=2,%1d% -= %2d% | description = Deducts an integer value from a global variable. | p1 = global variable | p2 = a floating point …')
 
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''SUB_VAL_FROM_FLOAT_VAR'''
| ini        = 000D=2,%1d% -= %2d%
+
<hr />
| description = Deducts  an integer value from a global variable
+
'''Description'''
| p1          = global variable
+
: Subtracts the specified floating-point value from the value stored in the global variable
| p2          = a floating point value
+
'''Syntax'''
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
: 000D: [''global var''] -= [''flt'']
}}
+
: [''global var''] -= [''flt'']
This opcode deducts a floating point value from the value of a specific global variable. 
+
'''Parameter'''
 +
: [''global var'']
 +
:: Global variable
 +
: [''flt'']
 +
:: Floating-point value
  
==Sanny Builder Example==
+
== Keywords ==
 +
global, variable, var, float, sub
  
<source lang="scm">000C: $1020 -= 1</source>
+
== See also ==
 +
* [[000C]] &ndash; subs int from global var
 +
* [[000E]] &ndash; subs int from local var
 +
* [[000F]] &ndash; subs flt from local var
  
==Keywords==
+
[[Category:OpCodes]][[Category:Math OpCodes]]
global, variable, floating point value, deduct
 
 
 
[[Category:Math_OpCodes]]
 

Latest revision as of 11:27, 2 February 2015

GTA III Vice City San Andreas SUB_VAL_FROM_FLOAT_VAR


Description

Subtracts the specified floating-point value from the value stored in the global variable

Syntax

000D: [global var] -= [flt]
[global var] -= [flt]

Parameter

[global var]
Global variable
[flt]
Floating-point value

Keywords

global, variable, var, float, sub

See also

  • 000C – subs int from global var
  • 000E – subs int from local var
  • 000F – subs flt from local var