Difference between revisions of "0248"

From GTAMods Wiki
Jump to navigation Jump to search
(page updates)
(correction)
 
Line 1: Line 1:
{{Icon|trilogy}} '''HAS_MODEL_LOADED'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = HAS_MODEL_LOADED
: Checks if the model has been loaded
+
| description = Checks if the model has been loaded
'''Syntax'''
+
| syntax1    = 0248: &nbsp; model [''int''] available
: 0248: &nbsp; model [''int''] available
+
| syntax2    = Model.Available( [''int''] )
: Model.Available( [''int''] )
+
| p1t        = [''int'']
'''Parameter'''
+
| p1d        = Valid model index as defined in the [[IDE]] file; also acceptable is model's [[DFF]] name with a hash character
: [''int'']
+
| native      = [[HAS_MODEL_LOADED]]
:: 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 returns true if the model has been loaded. A model can load in a number of ways, including using opcode [[0247]] or traveling to the location of a [[IPL|placed object]] that uses the model. The check can be avoided if opcode [[038B]] is used.
  
 
== Keywords ==
 
== Keywords ==
 
has, check, model, loaded, available
 
has, check, model, loaded, available
 
[[Category:OpCodes]]
 

Latest revision as of 14:24, 16 December 2016

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 model index as defined in the IDE file; also acceptable is model's DFF name with a hash character
Native analog
HAS_MODEL_LOADED

This opcode returns true if the model has been loaded. A model can load in a number of ways, including using opcode 0247 or traveling to the location of a placed object that uses the model. The check can be avoided if opcode 038B is used.

Keywords

has, check, model, loaded, available