PlaySound: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(New page: Type: Object sound pointer, parameterized Parameter Information: *Unknown 1 = Sound DeHackEd number to play (must be valid, no default) *Unknown 2 = Select sound volume **0 = normal (...)
 
No edit summary
Line 1: Line 1:
Type: Object sound pointer, parameterized
Parameters:  
 
*'''misc1''' = Sound mnemonic or DeHackEd number to play (must be valid, no default)  
Parameter Information:  
*'''misc2''' = Select sound volume  
*Unknown 1 = Sound DeHackEd number to play (must be valid, no default)  
*Unknown 2 = Select sound volume  
**0 = normal (default)  
**0 = normal (default)  
**1 = full volume  
**1 = full volume  


Purpose: Causes the object to emit the sound indicated by the provided sound DeHackEd number, at the indicated volume level. New to MBF.
Causes the object to emit the sound indicated by the provided sound mnemonic or DeHackEd number, at the indicated volume level.
 
If the sound name or number is invalid, nothing will happen.


Notes: As of Eternity Engine v3.31 public beta 3, this codepointer will no longer crash the game if an invalid sound number is provided. If the sound number is invalid, nothing will happen.
Can be used with [[PlayerThunk]].


Thunk: Yes.
==See also==
*[[List of codepointers]]
*[[PlaySoundEx]]

Revision as of 09:22, 23 May 2010

Parameters:

  • misc1 = Sound mnemonic or DeHackEd number to play (must be valid, no default)
  • misc2 = Select sound volume
    • 0 = normal (default)
    • 1 = full volume

Causes the object to emit the sound indicated by the provided sound mnemonic or DeHackEd number, at the indicated volume level.

If the sound name or number is invalid, nothing will happen.

Can be used with PlayerThunk.

See also