Geos

Geos

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
User avatar
krogothe
AI Developer
Posts: 1050
Joined: 14 Nov 2005, 17:07

Geos

Post by krogothe »

How do i make the AI find a geothermal spot?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

In the AICallback, you can get a list of all the features on the map. You get an array of itnegers that are feature id's, which are used in the same way as untiID's. You then do soemthign such as const FeatureDef* fd = cb->GetFeaturedef(int featureID); then one of the values in the feature def defines if ti can be used as a geothermal. If ti can eb used as a heothermal then
float3 pos = cb->GetFeaturePos(int featureid);
bool can = cb->CanBuiltAt() etc.....
User avatar
krogothe
AI Developer
Posts: 1050
Joined: 14 Nov 2005, 17:07

Post by krogothe »

cool! thanks a bunch
Post Reply

Return to “AI”