CMO ScenEdit_LocalSound (string)
Posted: Tue Dec 10, 2019 2:34 pm
Never tried to play a sound before and can't get the function to work. Has anyone? Below is the syntax.
Functions in the Lua Documentation:
ScenEdit_MsgBox (string, style)
ScenEdit_LocalSound (string)
This is what I ran and the result:
ScenEdit_MsgBox ("This works", 1)
ScenEdit_LocalSound ("Explosion_air_medium.mp3")
Result:
>> ScenEdit_MsgBox ("This works", 1)
ScenEdit_LocalSound ("Explosion_air_medium.mp3")
ERROR: [string "Console"]:2: attempt to call global 'ScenEdit_LocalSound' (a nil value)
nil value might indicate the "ink" between the function and the sound\effects folder is nonexistent.
Have to relearn lua every time I use it - so no expert here. I want a sound to indicate a car bomb going off using the enter area trigger.
Thanks.
Functions in the Lua Documentation:
ScenEdit_MsgBox (string, style)
ScenEdit_LocalSound (string)
This is what I ran and the result:
ScenEdit_MsgBox ("This works", 1)
ScenEdit_LocalSound ("Explosion_air_medium.mp3")
Result:
>> ScenEdit_MsgBox ("This works", 1)
ScenEdit_LocalSound ("Explosion_air_medium.mp3")
ERROR: [string "Console"]:2: attempt to call global 'ScenEdit_LocalSound' (a nil value)
nil value might indicate the "ink" between the function and the sound\effects folder is nonexistent.
Have to relearn lua every time I use it - so no expert here. I want a sound to indicate a car bomb going off using the enter area trigger.
Thanks.