Difference between revisions of "0AAD"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{OpCode | ini = 0AAD=2,%1d% %2d% | description = Sets a loaded MP3's action | p1 = MP3 handle obtained by 0AAC | p2 = A number to specify an action | game...)
 
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 0AAD=2,%1d% %2d%
+
| games      = {{Icon|SA}} (with [[CLEO]])
 
| description = Sets a loaded MP3's action
 
| description = Sets a loaded MP3's action
| p1          = MP3 handle obtained by [[ 0AAC ]]
+
| syntax1    = 0AAD: set_mp3 [''mp3 handle''] perform_action [''int'']
| p2          = A number to specify an action
+
| p1t        = [''mp3 handle'']
| game        = San Andreas
+
| p1d        = The [[0AAC|handle of the MP3]]
 +
| p2t        = [''int'']
 +
| p2d        = Action (see below)
 
}}
 
}}
 +
This opcode sets a loaded MP3's action. Play, Stop, Pause and Resume are currently supported. It is used in conjunction with opcodes [[0AAB]] and [[0AAC]]
  
This opcode sets a loaded MP3's action. Play, Stop, Pause and Resume are currently supported. It is used in conjunction with opcodes [[ 0AAB ]] and [[ 0AAC ]]
+
Action Numbers:
[[Sanny Builder]] example:<source lang="scm">0AAD: set_mp3 $hMP3 perform_action 1"
+
*0: Stop
</source>
+
*1: Play
 +
*2: Pause
 +
*3: Resume
  
==Action Numbers==
+
==Keywords==
  0: Stop
+
load, mp3, audio, sound
  1: Play
 
  2: Pause
 
  3: Resume
 
  
 
==Notes==
 
==Notes==
The MP3 opcodes have been known to cause crashes on some occasions. Take care when using these opcodes.
+
The MP3 opcodes have been known to cause crashes in CLEO3 on some occasions. Take care when using these opcodes.
 
 
==Example==
 
The following code is only an example and has not been tested nor is it complete, thus meaning it should not be copied and compiled.
 
<source lang="scm">
 
:SECOND
 
wait 1000 ms
 
0AAD: set_mp3 $hMP3 perform_action 1
 
0A93: end_custom_thread
 
</source>
 
 
 
==Keywords==
 
load, mp3
 
  
[[Category:Mission Scripting]]
+
[[Category:CLEO Opcodes]]

Latest revision as of 05:54, 26 January 2016

San Andreas (with CLEO)


Description
Sets a loaded MP3's action
Syntax
0AAD: set_mp3 [mp3 handle] perform_action [int]
Parameter
[mp3 handle]
The handle of the MP3
[int]
Action (see below)

This opcode sets a loaded MP3's action. Play, Stop, Pause and Resume are currently supported. It is used in conjunction with opcodes 0AAB and 0AAC

Action Numbers:

  • 0: Stop
  • 1: Play
  • 2: Pause
  • 3: Resume

Keywords

load, mp3, audio, sound

Notes

The MP3 opcodes have been known to cause crashes in CLEO3 on some occasions. Take care when using these opcodes.