Skip to content

Instantly share code, notes, and snippets.

@commy2
Last active May 15, 2019 20:06
Show Gist options
  • Save commy2/436ce91123e6089af8a20cb9b26b2ce8 to your computer and use it in GitHub Desktop.
Save commy2/436ce91123e6089af8a20cb9b26b2ce8 to your computer and use it in GitHub Desktop.
// 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