Audio::playSoundFromCoord: Difference between revisions

From RAGE Multiplayer Wiki
 
Line 10: Line 10:
*'''audioRef:''' String
*'''audioRef:''' String
*'''p6:''' Boolean
*'''p6:''' Boolean
*'''p7:''' unknown (to be checked)
*'''p7:''' int
*'''p8:''' Boolean
*'''p8:''' Boolean
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''

Latest revision as of 12:21, 31 January 2018

All found occurrences in b617d, sorted alphabetically and identical lines removed: pastebin.com/eeFc5DiW

gtaforums.com/topic/795622-audio-for-mods

Syntax

mp.game.audio.playSoundFromCoord(soundId, audioName, x, y, z, audioRef, p6, p7, p8);

Required Arguments

  • soundId: int
  • audioName: String
  • x: float
  • y: float
  • z: float
  • audioRef: String
  • p6: Boolean
  • p7: int
  • p8: Boolean

Return value

  • Undefined

Example

let pos = mp.players.local.position;

mp.game.audio.playSoundFromCoord(1, "CONFIRM_BEEP", pos.x, pos.y, pos.z, "HUD_MINI_GAME_SOUNDSET", false, 0, false);

See also