logan83 11 Posted October 22, 2013 some time ago... i've been getting some problems with the "||" or "or" operator... can somebody tell me why this dont work? waitUntil{(_vip knowsAbout player > 1) || (!alive jefe1) || (!alive jefe2) || (alive jefe3)}; _vip switchmove "False"; _vip enableAI "ANIM"; _vip enableAI "MOVE"; _vip allowFleeing (random 0.8); _vip setBehaviour "AWARE"; _vip setCombatMode "YELLOW"; _vip addWeapon "hgun_mas_mak_F"; _vip addEventHandler ["FiredNear", {_vip setcaptive true}]; the problem is this group of conditions waitUntil{(_vip knowsAbout player > 1) || (!alive jefe1) || (!alive jefe2) || (alive jefe3)}; if i accomplishedby any of these four conditions, nothing happens... bu if i put the conditions individually like this one... waitUntil{(_vip knowsAbout player > 1)}; works when the condition is accomplished... Any Help???? how can i put the four conditions in the right form??? Share this post Link to post Share on other sites
ProfTournesol 956 Posted October 22, 2013 Are you sure about the last condition : || (alive jefe3) Share this post Link to post Share on other sites
logan83 11 Posted October 22, 2013 nopes thats a fail... but dont work with || (!alive jefe3) too :( ---------- Post added at 19:36 ---------- Previous post was at 18:53 ---------- uhm... its too strange... i solve the problem changing "||" by "or" somebody have the same problem with this??? :butbut: Share this post Link to post Share on other sites
cuel 25 Posted October 22, 2013 Doesn't matter, they're the same thing. Share this post Link to post Share on other sites
logan83 11 Posted October 22, 2013 yep... but cant run with ||... its a problem of my pc or its a arma problem? Share this post Link to post Share on other sites
cuel 25 Posted October 23, 2013 Other problem, you sure you had written || and not // Share this post Link to post Share on other sites
lappihuan 178 Posted October 23, 2013 Had problem with the || too. Use OR instead of ||. It worked for me, but i don't know why || didn't worked, it is on BIKI and it should work. Share this post Link to post Share on other sites
engima 328 Posted October 23, 2013 Are jefe1, jefe2 or jefe3 maybe null or nill? Share this post Link to post Share on other sites