top of page

To make player breath when he wears gazmask, follow the steps below :

​

We will take 2 exemple : 1 with Guerilla Pilot Helmet Headgear and 1 with the Gazmasks from mod Hidden Identities (that include real gazmasks)

​

​

For Guerilla Pilot Helmet Headgear

​

​

​

1 - Create mask_breathe.sqf file into your mission folder and past this :

​

​

​

_player = _this select 0;

​

if (isdedicated) exitwith {};

​

waituntil {headgear _player == "H_PilotHelmetFighter_I" OR headgear _player == "H_PilotHelmetFighter_I" OR headgear _player == "H_PilotHelmetFighter_I"};

​

while {alive _player AND (headgear _player == "H_PilotHelmetFighter_I" OR headgear _player == "H_PilotHelmetFighter_I" OR headgear _player == "H_PilotHelmetFighter_I")} do    { 
playsound3d ["A3\sounds_f\characters\human-sfx\other\diver-breath-2.wss", _player,false,getposASL _player, 0.8,1,15];
sleep 5;

​

            };

​

null = [_player] execVM "mask_breathe.sqf";

​

​

​

2 - Place players in the EDEN Editor now and in the INIT Box past 

​

 

​

null = [this] execVM "mask_breathe.sqf";

​

​

Portez le masque et vous entendrez votre personnage respirez. Enlevez-le masque et vous n'entendrez plus le soufflement

​

​

​

​

For Gazmasks from Hidden Identities

​

​

​

​

1 - Create mask_breathe.sqf file into your mission folder and past this :
​
​
_player = _this select 0;
​
if (isdedicated) exitwith {};
​
waituntil {
goggles _player == "Mask_M50" OR goggles _player == "Mask_M40" OR goggles _player == "Mask_M40_OD"};
​
while {alive _player AND (
goggles _player == "Mask_M50" OR goggles _player == "Mask_40" OR goggles _player == "Mask_M40_OD")} do    { 
playsound3d ["A3\sounds_f\characters\human-sfx\other\diver-breath-2.wss", _player,false,getposASL _player, 0.8,1,15];
sleep 5;
​
            };
​
null = [_player] execVM "mask_breathe.sqf";
​

​
​
2 - Place players in the EDEN Editor now and in the INIT Box past 
​


​
null = [this] execVM "mask_breathe.sqf";

​

​

​

​

​

MAKE BREATH PLAYER WITH GAZMASK

bottom of page