Hi All,It is possible to detect whether or not a player is a CPU or human (ex., trigger1= p1 = human, p2 = cpu, etc). Thanks
In 1.0. It's very easyAILevel = 0, you are a human. AILevel != 0, you are AI. Sotrigger1 = enemynear(0), AILevel != 0You're fighting CPU.Trigger1 = AILevel = 0You are a human.
Not reliably no. Although var(59) is normally used for AI, you can't be at all sure of it. And until the AI actually activates it'll return a false positive.
What if we want to detect a cpu player ONLY in arcade (one on one) mode? so that we can put character specific storyboards that otherwise won't appear in vs CPU in team arcade, training, etc
I believe the same code applies for that as well. If the player's AILevel is greater than 0, then they are a CPU.
kenshinx0 said, July 25, 2011, 10:49:06 pmI believe the same code applies for that as well. If the player's AILevel is greater than 0, then they are a CPU.Yes but they could be CPU in another mode, say training or team arcade. We're trying to detect CPU ONLY for single one on one arcade mode
Use TeamMode = Single as your trigger and make sure that your enemy's AILevel is greater than 0. Just as a fallback, you could also check if both you and your enemy have 0 partners using the NumPartner trigger.