Difference between revisions of "000B"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{OpCode | ini = 000B=2,%1d% += %2d% | description = Adds a floating-point value to a local variable. | p1 = local variable | p2 = a floating-point va…')
 
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''ADD_VAL_TO_FLOAT_LVAR'''
| ini        = 000B=2,%1d% += %2d%
+
<hr />
| description = Adds a floating-point value to a local variable
+
'''Description'''
| p1          = local variable
+
: Adds the value stored in the local variable by the specified floating-point value
| p2          = a floating-point value
+
'''Syntax'''
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
: 000B: [''local var''] += [''flt'']
}}
+
: [''local var''] += [''flt'']
This opcode adds a floating-point value to the value of a specific local variable. 
+
'''Parameter'''
 +
: [''local var'']
 +
:: Local variable
 +
: [''flt'']
 +
:: Floating-point value
  
==Sanny Builder Example==
+
== Keywords ==
 +
local, variable, var, float, add
  
<source lang="scm">000B: 6@ += 0.1</source>
+
== See also ==
 +
* [[0008]] &ndash; adds global var by int
 +
* [[0009]] &ndash; adds global var by flt
 +
* [[000A]] &ndash; adds local var by int
  
==Keywords==
+
[[Category:OpCodes]][[Category:Math OpCodes]]
local, variable, floating point value, add, math
 
 
 
[[Category:Math_OpCodes]]
 

Revision as of 11:20, 2 February 2015

GTA III Vice City San Andreas ADD_VAL_TO_FLOAT_LVAR


Description

Adds the value stored in the local variable by the specified floating-point value

Syntax

000B: [local var] += [flt]
[local var] += [flt]

Parameter

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

Keywords

local, variable, var, float, add

See also

  • 0008 – adds global var by int
  • 0009 – adds global var by flt
  • 000A – adds local var by int