Difference between revisions of "0007"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{OpCode | ini = 0007=2,%1d% = %2d% | description = Stores a Float into a Local Variable. | p1 = Local Variable | p2 = Floating Point | game =…')
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''SET_LVAR_FLOAT'''
| ini        = 0007=2,%1d% = %2d%
+
<hr />
| description = Stores a Float into a Local Variable.
+
'''Description'''
| p1          = Local Variable
+
: Sets the value of a local variable to a specified float.
| p2          = Floating Point
+
'''Syntax'''
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
: 0007: [''local var''] = [''flt'']
}}
+
: [''local var''] = [''flt'']
This opcode stores a Floating point into a Local Variable.
+
'''Parameter'''
 +
: [''local var'']
 +
:: Local variable
 +
: [''flt'']
 +
:: Floating-point value
  
==Sanny Builder Example==
+
This opcode sets the value of a local variable to a specified float.
  
<source lang="scm">0007: 7@ = 0.0</source>
+
== Keywords ==
 +
set, local, float, variable, [[math]]
  
==Keywords==
+
== See also ==
Local, Variable, Float, Floating point
+
* [[0004]] &ndash; sets int value of global var
 +
* [[0005]] &ndash; sets flt value of global var
 +
* [[0006]] &ndash; sets int value of local var
 +
 
 +
[[Category:OpCodes]][[Category:Math OpCodes]]

Latest revision as of 21:58, 5 February 2015

GTA III Vice City San Andreas SET_LVAR_FLOAT


Description

Sets the value of a local variable to a specified float.

Syntax

0007: [local var] = [flt]
[local var] = [flt]

Parameter

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

This opcode sets the value of a local variable to a specified float.

Keywords

set, local, float, variable, math

See also

  • 0004 – sets int value of global var
  • 0005 – sets flt value of global var
  • 0006 – sets int value of local var