Difference between revisions of "0249"

From GTAMods Wiki
Jump to navigation Jump to search
(updating page)
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''MARK_MODEL_AS_NO_LONGER_NEEDED'''
| ini        = 0249=1,%1o%
+
<hr />
| description = Releases the model from memory
+
<onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode|
| p1          = [[DFF]] model ID or name as defined at the beginning of the <code>[[main.scm]]</code>
+
'''Description'''
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
: Marks the model as unneeded
| native      = [[MARK_MODEL_AS_NO_LONGER_NEEDED]]
+
'''Syntax'''
}}
+
: 0249: release_model [''int'']
This opcode releases the model after [[0247]] is used.
+
: Model.Destroy( [''int''] )
 +
'''Parameter'''
 +
: [''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]]
  
==Note==
+
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.
In [[Sanny Builder]], this opcode is equivalent to the command '''Model.Destroy'''.
+
}}</onlyinclude>
Example: <source lang="scm">Model.Destroy(#BFORI)</source>
 
  
==Keywords==
+
== Keywords ==
 
release, destroy, unload, model
 
release, destroy, unload, model
 +
 +
[[Category:OpCodes]]

Revision as of 16:34, 19 January 2012

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 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.

Keywords

release, destroy, unload, model