I was thinkin in other way.
target.state !=( 12 || 18)
Is target other than (12 or 18)?
9001
if target state!=(12x or 18x )
alternative(12x or 18x )= 0
!0 = 1
ANSWER: YES!
18
if target state!=(12x or 18v )
alternative(12x or 18v ) = 1
!1 = 0
ANSWER: NO
12
if target state!=(12v or 18x )
alternative(12v or 18x ) = 1
!1 = 0
ANSWER: NO
I'm really confused now, if this should work.
xDD I'm probably wrong, but this seems reasonable for me.
Let's stick with:
target.state !=12 && target.state != 18
I thought I can write it shorter.
You will probably come in with a solution to my problem anyway, to show me how wrong I am.
EDIT:
ANOTHER QUESTION
Just theoretical, cause I'm not willing to test it right now.
Can I ask the AI to ignore weapons in that way:
- Check target, if target is a weapon, then select other target
Won't it be buggy?
target.state !=( 12 || 18)
Is target other than (12 or 18)?
9001
if target state!=(12x or 18x )
alternative(12x or 18x )= 0
!0 = 1
ANSWER: YES!
18
if target state!=(12x or 18v )
alternative(12x or 18v ) = 1
!1 = 0
ANSWER: NO
12
if target state!=(12v or 18x )
alternative(12v or 18x ) = 1
!1 = 0
ANSWER: NO
I'm really confused now, if this should work.
xDD I'm probably wrong, but this seems reasonable for me.
Let's stick with:
target.state !=12 && target.state != 18
I thought I can write it shorter.
You will probably come in with a solution to my problem anyway, to show me how wrong I am.
(08-16-2013, 01:11 PM)Azriel Wrote: (target.state != 12 || target.state != 18)But is (target.state != 12 || target.state != 18) equavilent to (target.state != (12 || 18))?
what it checks: my target's state is not 12, OR, my target's state is not 18.
EDIT:
ANOTHER QUESTION
Just theoretical, cause I'm not willing to test it right now.
Can I ask the AI to ignore weapons in that way:
- Check target, if target is a weapon, then select other target
Won't it be buggy?