World:playSoundEffectOnPos()

Parameters :

Return Value :

Code Example :

-- Store the ID of Sound Effect into a Table
local soundEffect = {
    explosion = 10538
}
-- Simplify the Function for Easier Call
local function playSoundOnPos(x,y,z,whatsound,volume) 
    World:playSoundEffectOnPos({x=x,y=y,z=z}, whatsound, volume, 1, false)
end 
 
-- Example of Usage 
playSoundOnPos(10,10,0,soundEffect,100);