Difference between revisions of "038F"

From GTAMods Wiki
Jump to navigation Jump to search
(page rewrite)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Icon|t}} '''LOAD_SPRITE'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = LOAD_SPRITE
: Loads the texture
+
| description = Loads the sprite
'''Syntax'''
+
| syntax1    = {{Icon|3}} {{Icon|VC}} 038F: load_texture '[''string'']' as [''int'']
: 038F: load_texture "[''string'']" as [''int'']
+
| syntax2    = {{Icon|SA}} 038F: load_texture "[''string'']" as [''int'']
'''Parameter'''
+
| p1t        = [''int'']
: [''string'']
+
| p1d        = Memory slot
:: The name of the texture
+
| p2t        = [''string'']
: [''int'']
+
| p2d        = The name of the sprite
:: Memory slot
+
}}
  
This opcode loads the texture from the texture dictionary loaded through opcode [[0390]] into the memory slot. Any upper case letters (A-Z) are converted to lower case by the game internally. Opcode [[038D]] is used to draw the texture onto the screen. This opcode was never called in the [[Main.scm|original script]] of GTA III and Vice City.
+
This opcode loads the sprite from the texture dictionary loaded through opcode [[0390]] into the memory slot. Any upper case letters (A-Z) are converted to lower case by the game internally. Opcode [[038D]] is used to draw the sprite onto the screen. This opcode was never called in the [[Main.scm|original script]] of GTA III and Vice City.
 +
 
 +
== Example ==
 +
:''See [[038D#Example]]''
  
 
== Keywords ==
 
== Keywords ==
 
load, texture, txd, sprite
 
load, texture, txd, sprite
 
[[Category:OpCodes]]
 

Latest revision as of 15:34, 14 September 2017

GTA III Vice City San Andreas LOAD_SPRITE


Description
Loads the sprite
Syntax
GTA III Vice City 038F: load_texture '[string]' as [int]
San Andreas 038F: load_texture "[string]" as [int]
Parameter
[int]
Memory slot
[string]
The name of the sprite

This opcode loads the sprite from the texture dictionary loaded through opcode 0390 into the memory slot. Any upper case letters (A-Z) are converted to lower case by the game internally. Opcode 038D is used to draw the sprite onto the screen. This opcode was never called in the original script of GTA III and Vice City.

Example

See 038D#Example

Keywords

load, texture, txd, sprite