Difference between revisions of "0249"

From GTAMods Wiki
Jump to navigation Jump to search
m
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 0249=1,%1o%
+
| games      = {{Icon|t}}
| description = Releases the model from memory
+
| command    = MARK_MODEL_AS_NO_LONGER_NEEDED
| p1          = [[DFF]] model ID or name as defined at the beginning of the <code>main.scm</code>
+
| description = Marks the model as unneeded
| game        = GTA3, Vice City, San Andreas
+
| syntax1    = 0249: release_model [''int'']
 +
| syntax2    = Model.Destroy( [''int''] )
 +
| p1t        = [''int'']
 +
| p1d        = Valid model index as defined in the [[IDE]] file; also acceptable is model's [[DFF]] name with a hash character
 
| native      = [[MARK_MODEL_AS_NO_LONGER_NEEDED]]
 
| native      = [[MARK_MODEL_AS_NO_LONGER_NEEDED]]
 
}}
 
}}
This opcode releases the model after [[0247]] is used.
 
  
==Keywords==
+
This opcode marks the model as unneeded, usually after it is requested through opcode [[0247]]. The reference to the model doesn't disappear immediately so it's possible, though not recommended, to spawn objects without requesting the model again after this opcode is used.
release, model
 
  
[[Category:OpCodes]]
+
== Example ==
 +
:''See [[009A#Example]], [[00A5#Example]], [[010E#Example]], [[01B2#Example]]
 +
 
 +
== Keywords ==
 +
release, destroy, unload, model

Latest revision as of 06:47, 7 July 2017

GTA III Vice City San Andreas MARK_MODEL_AS_NO_LONGER_NEEDED


Description
Marks the model as unneeded
Syntax
0249: release_model [int]
Model.Destroy( [int] )
Parameter
[int]
Valid model index as defined in the IDE file; also acceptable is model's DFF name with a hash character
Native analog
MARK_MODEL_AS_NO_LONGER_NEEDED

This opcode marks the model as unneeded, usually after it is requested through opcode 0247. The reference to the model doesn't disappear immediately so it's possible, though not recommended, to spawn objects without requesting the model again after this opcode is used.

Example

See 009A#Example, 00A5#Example, 010E#Example, 01B2#Example

Keywords

release, destroy, unload, model