Difference between revisions of "0248"

From GTAMods Wiki
Jump to navigation Jump to search
(page updates)
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''HAS_MODEL_LOADED'''
| ini        = 0248=1,  %1o%
+
<hr />
| description = Checks if the model has been loaded
+
'''Description'''
| p1          = [[DFF]] model ID or name as defined at the beginning of the <code>[[main.scm]]</code>
+
: Checks if the model has been loaded
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
'''Syntax'''
| native      = [[HAS_MODEL_LOADED]]
+
: 0248: &nbsp; model [''int''] available
}}
+
: Model.Available( [''int''] )
 +
'''Parameter'''
 +
: [''int'']
 +
:: Valid object model ID number as defined in the [[IDE]] file; also acceptable is model's [[DFF]] name identified by a hash character
 +
'''Native analog'''
 +
: [[HAS_MODEL_LOADED]]
 +
 
 
This opcode checks if the model is loaded after using [[0247]]. The check can be avoided if opcode [[038B]] is used.
 
This opcode checks if the model is loaded after using [[0247]]. The check can be avoided if opcode [[038B]] is used.
  
==Note==
+
== Keywords ==
In [[Sanny Builder]], this opcode is equivalent to the command '''Model.Available'''.
+
has, check, model, loaded, available
Example: <source lang="scm">Model.Available(#BFORI)</source>
 
  
==Keywords==
+
[[Category:OpCodes]]
has, check, model, loaded, available
 

Revision as of 23:58, 12 January 2015

GTA III Vice City San Andreas HAS_MODEL_LOADED


Description

Checks if the model has been loaded

Syntax

0248:   model [int] available
Model.Available( [int] )

Parameter

[int]
Valid object model ID number as defined in the IDE file; also acceptable is model's DFF name identified by a hash character

Native analog

HAS_MODEL_LOADED

This opcode checks if the model is loaded after using 0247. The check can be avoided if opcode 038B is used.

Keywords

has, check, model, loaded, available