Author Topic: Ai Questions  (Read 1873 times)

Offline Sirbomber

  • Hero Member
  • *****
  • Posts: 3238
Ai Questions
« on: September 16, 2009, 10:50:44 PM »
Sorry, don't have time to use the search button.

Is there a way to tell what vehicle a VF is producing and then, after it's been produced, grab it and tell it to do something without using a bunch of locations and unit enumerators?
"As usual, colonist opinion is split between those who think the plague is a good idea, and those who are dying from it." - Outpost Evening Star

Outpost 2 Coding 101 Tutorials

Offline Hooman

  • Administrator
  • Hero Member
  • *****
  • Posts: 4955
Ai Questions
« Reply #1 on: September 16, 2009, 11:42:00 PM »
You could potentially use groups. Have the factory produce a unit for a group (or have the group demand the factory build it something), and then check the group for new units.

You can probably use a mem hack to find out if/what a factory is producing.
 

Offline Sirbomber

  • Hero Member
  • *****
  • Posts: 3238
Ai Questions
« Reply #2 on: September 17, 2009, 07:51:43 AM »
So what you're getting at is "yes, but it would actually be harder to do it that way."  Am I right?
"As usual, colonist opinion is split between those who think the plague is a good idea, and those who are dying from it." - Outpost Evening Star

Outpost 2 Coding 101 Tutorials