User avatar
Hobbes
Posts: 4438
Joined: Sat Mar 11, 2006 12:18 am
Location: UK

Random Unit

Mon Jan 05, 2009 2:43 pm

Hi chaps, If I have 2 identical units in a region apart from different names is there a simple way (one event) to pick one of them at random? I'd like to damage one but not the other.

Cheers, Chris

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

Mon Jan 05, 2009 5:31 pm

AlterCuSubUnit pick at random, just make sure you select all candidates.
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