Jump to content
Sign in to follow this  
BlackQwar

[Debugging] Undercover agent script

Recommended Posts

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×