Search the Community
Showing results for tags 'deathscreams'.
Found 1 result
-
Can someone help me with that Script?
XxAsathorxX posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Can someone help me please? I have he followig problem with a script that i found in the forums. Original Script: https://forums.bistudio.com/forums/topic/170735-wilhelm-scream/ . My customized Version: //resistancecheck.sqf { if (side _x == resistance) then { KilledUnit = _x addeventhandler ["killed", {_soundPath = [(str missionConfigFile), 0, -15] call BIS_fnc_trimString; _randscream = ["sounds\death_scream_1.wav","sounds\death_scream_2.wav","sounds\death_scream_3.wav","sounds\death_scream_4.wav","sounds\death_scream_5.wav", "sounds\death_scream_6.wav","sounds\death_scream_7.wav","sounds\death_scream_8.wav","sounds\death_scream_9.wav","sounds\death_scream_10.wav", "sounds\death_scream_11.wav","sounds\death_scream_12.wav","sounds\death_scream_13.wav","sounds\death_scream_14.wav"]; _soundToPlay = _soundPath + (_randscream call BIS_fnc_selectRandom); playSound3D [_soundToPlay, (_this select 0), false, getPos (_this select 0), 10, 1, 50];}]; KilledUnit = _x addeventhandler ["killed", {nul = _this execVM "scripts\resistancekilled.sqf"}]; }; } forEach allUnits; I can´t get it to work. The script should work as following: check if unit of side resistance was killed, then play a random "deathscream". Second script works without problems just the screams don´t work.