Difference between revisions of "0011"

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


Description

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

Syntax

0011: [global var] *= [flt]
[global var] *= [flt]

Parameter

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

Keywords

global, variable, var, float, multiply

See also

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