Exxor 2 Posted February 16, 2019 Hello there, for some reason I'm getting this error when trying to use multiple parameters in a while loop. Heres what my code looks like _flag = A; _isCaptured = false; _flagPos = position _flag; while {((alive player) && ( _isCaptured != true))} do { hint "in while"; if(player distance _flag <= 15) then { hint "Capturing flag"; sleep 5; _isCaptured = true; } }; hint "flag captured"; Share this post Link to post Share on other sites
Grumpy Old Man 3549 Posted February 16, 2019 The == check doesn't accept bool. It's nonsensical anyway since you can simply use !_isCaptured. Cheers Share this post Link to post Share on other sites
Exxor 2 Posted February 16, 2019 Thanks, man that fixed all of my issues. Share this post Link to post Share on other sites