YesNoOk
avatar

How to detect P2 power? (Read 1979 times)

Started by 0WNT, August 31, 2013, 09:49:28 pm
Share this topic:
How to detect P2 power?
#1  August 31, 2013, 09:49:28 pm
    • Portugal
    • anxl37y.gaming@gmail.com
I'm developing a new character. One of his abilities cosist of him grabbing the enemy and draining his power.
The problem that I have is that, while coding the AI i don't want P1 AI to grab P2, if P2  doesn't have a certain amount of power.

Any ideas on how to make this work? This character  is not part of a full game.
Re: How to detect P2 power?
#2  August 31, 2013, 10:35:12 pm
  • ***
  • Smart Icoca wannabe!
    • Poland
    • samouczek.com/
What about enemynear,power > desired_value trigger?
Re: How to detect P2 power?
#3  August 31, 2013, 11:34:10 pm
    • Portugal
    • anxl37y.gaming@gmail.com
Yes, that works. I totally forgot about the enemynear.

Thank you.