createSoundSource cannot be deleted with deleteVehicle and the sound keeps playing.
Description
Description
Details
Details
- Legacy ID
- 2683916824
- Severity
- None
- Resolution
- Fixed
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
- Go to Editor
- Run Code:
- spawn {
_alarm = createSoundSource ["Sound_Alarm", position player, [], 0];
sleep 5;
deleteVehicle _alarm;
hint str _alarm; // returns NOID <no shape>
};
Additional Information
Appears to be a new issue in 1.50
Event Timeline
Comment Actions
The code you have attached cannot be executed properly. Can you please check it again? Thanks!
Comment Actions
Works fine, just remove the line with the comment...
- spawn { _alarm = createSoundSource ["Sound_Alarm", position player, [], 0]; sleep 5; deleteVehicle _alarm;
};
Or you could use example 2 from https://community.bistudio.com/wiki/createSoundSource wich is basically the same