Last active
May 15, 2019 20:06
-
-
Save commy2/436ce91123e6089af8a20cb9b26b2ce8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// local omnipresent sound | |
0 spawn { | |
private _soundSource = allMissionObjects "#soundonvehicle"; | |
playSound "Alarm"; | |
_soundSource = allMissionObjects "#soundonvehicle" - _soundSource select 0; | |
sleep 0.4; | |
deleteVehicle _soundSource; | |
}; | |
// local 3d sound | |
0 spawn { | |
private _dummy = "#particlesource" createVehicleLocal ASLToAGL getPosWorld cameraOn; | |
private _soundSource = allMissionObjects "#soundonvehicle"; | |
_dummy say3D "Alarm"; | |
_soundSource = allMissionObjects "#soundonvehicle" - _soundSource select 0; | |
_soundSource attachTo [cameraOn, [0,0,0]]; | |
sleep 0.4; | |
deleteVehicle _soundSource; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment