i know that it is possible to create a scar file with mapname usually to set the music to be played when playing the map in DC
I have also noticed that in AI mod AIHighspeed.scar is used to set g_bHighSpeedAI = true using Cpu_DoString function
I would like to do the same with a table that contains impassable terrain circular zone.
I think it could be a good way store information that are map-related without the problem of the map name.
For instance : my_custom_map.sgb
Create a file my_custom_map.scar :
__init()
{
CpuDoString(AIplayerID, "m_impassableTerrainTable = {(CenterPos1, Radius1) ; ...;(CenterPosN, RadiusN) }
}
The "problem' is to create a table related to terrain in the first available AI player whereas it shall be placed in cpu_manager :-/
self.m_impassableTerrainTable = {}
I think it shall be possible since AI mod team successfully read information aihighspeed setting from scar to cpu_manager but i would like your advice Arkhan ? Larkin ?
am i dreaming or there is a way to code it ?
Edited by troubadour, 05 October 2007 - 09:54 AM.