Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _c = "<t color='#ffff33'>";
- sepa = [_c + "Put on ear plugs</t>",{
- _u = _this select 1;
- _i = _this select 2;
- if (soundVolume == 1) then {
- 1 fadeSound 0.5;
- _u setUserActionText [_i,_c + "Take off ear plugs</t>"]
- } else {
- 1 fadeSound 1;
- _u setUserActionText [_i,_c + "Put on ear plugs</t>"]
- }
- },[],-90,false,true,"","_target == vehicle player"];
- _this addAction sepa;
- _this addEventHandler ["Respawn",{
- 1 fadeSound 1;
- (_this select 0) addAction sepa;
- }];
Add Comment
Please, Sign In to add comment