BlackQwar 10 Posted June 11, 2014 Hello gents, anyone knows why is my script not working? //_x = [test] execVM "detection.sqf"; test = man, unit; ao = trigger // want to add one more condition (EAST knowsAbout _unit) && _unit = _this select 0; hint "started"; while {true} do { if ( (count ((weapons _unit) - (items _unit)) > 0) && (_unit in list AO) ) then {test sidechat "detected weapon"} else {test sidechat "no weapon"}; sleep 2; }; sleep 1; hint "ended"; Share this post Link to post Share on other sites
tryteyker 28 Posted June 11, 2014 You're missing semicolons after the sideChats: _unit = _this select 0; hint "started"; while {true} do { if ((count ((weapons _unit) - (items _unit)) > 0) && (_unit in list AO)) then { test sidechat "detected weapon"; } else { test sidechat "no weapon"; }; sleep 2; }; sleep 1; hint "ended"; Share this post Link to post Share on other sites
BlackQwar 10 Posted June 11, 2014 thank you very much! working now Share this post Link to post Share on other sites