Difference between revisions of "0005"

From GTAMods Wiki
Jump to navigation Jump to search
 
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''Number of parameters:''' 2
+
{{Icon|trilogy}} '''SET_VAR_FLOAT'''
 +
<hr />
 +
'''Description'''
 +
: Sets the value of a global variable to a specified float.
 +
'''Syntax'''
 +
: 0005: [''global var''] = [''flt'']
 +
: [''global var''] = [''flt'']
 +
'''Parameter'''
 +
: [''global var'']
 +
:: Global variable
 +
: [''flt'']
 +
:: Floating-point value
  
'''Works in:''' <br>SA
+
This opcode sets the value of a global variable to a specified float.
  
'''Parameters:'''
+
== Keywords ==
 +
set, global, float, variable, [[math]]
  
$float = The global float pointer
+
== See also ==
float = The global float value to be set
+
* [[0004]] &ndash; sets int value of global var
 +
* [[0006]] &ndash; sets int value of local var
 +
* [[0007]] &ndash; sets flt value of local var
  
'''Description:'''
+
[[Category:OpCodes]][[Category:Math OpCodes]]
 
 
P1 = P2
 
 
 
[[Category:OpCodes]]
 

Latest revision as of 21:57, 5 February 2015

GTA III Vice City San Andreas SET_VAR_FLOAT


Description

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

Syntax

0005: [global var] = [flt]
[global var] = [flt]

Parameter

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

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

Keywords

set, global, float, variable, math

See also

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