User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

New Command: CheckIsPlayer

Wed May 21, 2008 4:04 pm

CheckIsPlayer [;NOT]

Without argument, simply evaluate if the faction is controlled by a human (or semi-human in case of some testers out there :siffle :) .

If NOT, does the reverse, ie the condition is true if the faction is computer-controlled.

Reminder about CheckAILevel ... It works by testing if AI level is equal or superior to the value you give, with 0 being human, 1 easy AI and so on. So in effect, you can't check if the given faction is an human (and not an AI): you can only check if it is an AI with such one.
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 8 guests