Difference between revisions of "08D2"

From GTAMods Wiki
Jump to navigation Jump to search
 
 
Line 1: Line 1:
<code>08D2=2,%1d% %2d%</code><br>
+
{{OpCode
'''Description''': Scales the size of the object<br>
+
| games      = {{Icon|SA}}
'''Parameter 1''': Object handle<br>
+
| command    = SET_OBJECT_SCALE
'''Parameter 2''': Float<br>
+
| description = Sets the scale of the object
'''Supports''': San Andreas<br>
+
| syntax1    = 08D2: object [''object handle''] scale_model [''flt'']
 +
| p1t        = [''object handle'']
 +
| p1d        = The handle of the object
 +
| p2t        = [''flt'']
 +
| p2d        = Scale
 +
}}
  
This scales the model of the object by the amount in the float. Note that loading a saved game will reset the scale of the object so you need to rescale it after loading.
+
This opcode scales the model of the object. The game does not save the scaling so the object needs to be rescaled after loading a saved game.
  
==Keywords==
+
== Keywords ==
 
set, scale, object
 
set, scale, object
 
[[Category:OpCodes]]
 

Latest revision as of 06:00, 29 November 2016

San Andreas SET_OBJECT_SCALE


Description
Sets the scale of the object
Syntax
08D2: object [object handle] scale_model [flt]
Parameter
[object handle]
The handle of the object
[flt]
Scale

This opcode scales the model of the object. The game does not save the scaling so the object needs to be rescaled after loading a saved game.

Keywords

set, scale, object