Page MenuHomeFeedback Tracker

createSoundSource cannot be deleted
Closed, ResolvedPublic

Description

createSoundSource cannot be deleted with deleteVehicle and the sound keeps playing.

Details

Legacy ID
2683916824
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. Go to Editor
  2. Run Code:
  3. 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

Terror edited Steps To Reproduce. (Show Details)Aug 27 2015, 8:48 PM
Terror edited Additional Information. (Show Details)
Terror set Category to Scripting.
Terror set Reproducibility to Always.
Terror set Severity to None.
Terror set Resolution to Fixed.
Terror set Legacy ID to 2683916824.May 8 2016, 12:35 PM
Adam added a comment.Aug 28 2015, 9:52 AM

The code you have attached cannot be executed properly. Can you please check it again? Thanks!

Terror added a subscriber: Terror.May 8 2016, 12:35 PM

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

Bug fixed in patch 1.52. Thank you!