That's rather a subject for this section. anyway, your params is wrong. params needs local variables, not the stringed object itself.   params ["_cont"]; if (_cont == simc_a5_container) then {playSound "bagopen"};   (i supposed simc_a5_container is an object, not a class)