Difference between revisions of "0013"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{OpCode | ini = 0013=2,%1d% *= %2d% | description = Multiplies a floating point with a local variable. | p1 = local variable | p2 = a floating point …')
 
 
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''MULT_FLOAT_LVAR_BY_VAL'''
| ini        = 0013=2,%1d% *= %2d%
+
<hr />
| description = Multiplies a floating point with a local variable
+
'''Description'''
| p1          = local variable
+
: Multiplies the value stored in the local variable by the specified floating-point value
| p2          = a floating point
+
'''Syntax'''
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
: 0013: [''local var''] *= [''flt'']
}}
+
: [''local var''] *= [''flt'']
This opcode multiplies a floating point value with the value of a specific local variable. 
+
'''Parameter'''
 +
: [''local var'']
 +
:: Local variable
 +
: [''flt'']
 +
:: Floating-point value
  
==Sanny Builder Example==
+
== Keywords ==
 +
local, variable, var, float, multiply
  
<source lang="scm">0013: 17@ *= 9.8</source>
+
== See also ==
 +
* [[0010]] &ndash; mults global var by int
 +
* [[0011]] &ndash; mults global var by flt
 +
* [[0012]] &ndash; mults local var by int
  
==Keywords==
+
[[Category:OpCodes]][[Category:Math OpCodes]]
local, variable, floating point value, multiply 
 
 
 
[[Category:Math_OpCodes]]
 

Latest revision as of 11:52, 2 February 2015

GTA III Vice City San Andreas MULT_FLOAT_LVAR_BY_VAL


Description

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

Syntax

0013: [local var] *= [flt]
[local var] *= [flt]

Parameter

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

Keywords

local, variable, var, float, multiply

See also

  • 0010 – mults global var by int
  • 0011 – mults global var by flt
  • 0012 – mults local var by int