Page 1 of 1
Geos
Posted: 01 Dec 2005, 21:05
by krogothe
How do i make the AI find a geothermal spot?
Posted: 01 Dec 2005, 21:08
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.....
Posted: 01 Dec 2005, 21:13
by krogothe
cool! thanks a bunch