Difference between revisions of "000F"

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

Latest revision as of 11:30, 2 February 2015

GTA III Vice City San Andreas SUB_VAL_FROM_FLOAT_LVAR


Description

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

Syntax

000F: [local var] -= [flt]
[local var] -= [flt]

Parameter

[local var]
Local variable
[flt]
Floating-point value

Keywords

local, variable, var, float, sub

See also

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