Difference between revisions of "0AAD"

From GTAMods Wiki
Jump to navigation Jump to search
m
(example is too short to be useful)
Line 2: Line 2:
 
| ini        = 0AAD=2,%1d% %2d%
 
| ini        = 0AAD=2,%1d% %2d%
 
| description = Sets a loaded MP3's action
 
| description = Sets a loaded MP3's action
| p1          = MP3 handle obtained by [[ 0AAC ]]
+
| p1          = MP3 handle obtained by [[0AAC]]
 
| p2          = A number to specify an action  
 
| p2          = A number to specify an action  
| game        = San Andreas
+
| game        = [[San Andreas]]
 
}}
 
}}
  
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]]
 
[[Sanny Builder]] example:<source lang="scm">0AAD: set_mp3 $hMP3 perform_action 1</source>
 
[[Sanny Builder]] example:<source lang="scm">0AAD: set_mp3 $hMP3 perform_action 1</source>
  
==Action Numbers==
+
Action Numbers:
  0: Stop
+
:0: Stop
  1: Play
+
:1: Play
  2: Pause
+
:2: Pause
  3: Resume  
+
:3: Resume  
 +
 
 +
==Keywords==
 +
load, mp3
  
 
==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 on some occasions. Take care when using these opcodes.
  
==Example==
+
[[Category:CLEO Opcodes]]
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]]
 

Revision as of 21:17, 5 April 2009

{{{games}}}


Description
Sets a loaded MP3's action
Syntax
{{{syntax1}}}
Parameter

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

Sanny Builder example:

0AAD: set_mp3 $hMP3 perform_action 1

Action Numbers:

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

Keywords

load, mp3

Notes

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