Jump to content
Sign in to follow this  
logan83

binary operators problem...

Recommended Posts

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

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

Doesn't matter, they're the same thing.

Share this post


Link to post
Share on other sites

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

Other problem, you sure you had written || and not //

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×