Difference between revisions of "0249"

From GTAMods Wiki
Jump to navigation Jump to search
(updating page)
m
 
Line 1: Line 1:
{{Icon|trilogy}} '''MARK_MODEL_AS_NO_LONGER_NEEDED'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
<onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode|
+
| command    = MARK_MODEL_AS_NO_LONGER_NEEDED
'''Description'''
+
| description = Marks the model as unneeded
: Marks the model as unneeded
+
| syntax1    = 0249: release_model [''int'']
'''Syntax'''
+
| syntax2    = Model.Destroy( [''int''] )
: 0249: release_model [''int'']
+
| p1t        = [''int'']
: Model.Destroy( [''int''] )
+
| p1d        = Valid model index as defined in the [[IDE]] file; also acceptable is model's [[DFF]] name with a hash character
'''Parameter'''
+
| native      = [[MARK_MODEL_AS_NO_LONGER_NEEDED]]
: [''int'']
+
}}
:: Valid model ID number as defined in the [[IDE]] file; also acceptable is model's [[DFF]] name identified by a hash character
 
'''Native analog'''
 
: [[MARK_MODEL_AS_NO_LONGER_NEEDED]]
 
  
This opcode marks the model as unneeded after it is requested through opcode [[0247]]. The reference to the model doesn't disappear immediately so objects can be spawned without requesting again after this opcode is used.
+
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.
}}</onlyinclude>
+
 
 +
== Example ==
 +
:''See [[009A#Example]], [[00A5#Example]], [[010E#Example]], [[01B2#Example]]
  
 
== Keywords ==
 
== Keywords ==
 
release, destroy, unload, model
 
release, destroy, unload, model
 
[[Category:OpCodes]]
 

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