-
Re: GroundBuilding
ok, thanks for the tip. I was actually looping through GroundStationary [] but I coud not find anything like House.
However when I checked my mission in FMB there was no buildings in it.... silly me.
I noticed one thing, looping through:
foreach (GroundStationary gs in GamePlay.gpGroundStationarys())
{
//Console.WriteLine("GroundStationary: " + gs.Name + " Category: " + gs.Category + " country : " + gs.country + " Title: " + gs.Title + " Type : " + gs.Type);
}
will not result in all static objects from mission but if i add:
if (actor is AiGroundActor)
{
AiGroundActor ground = actor as AiGroundActor;
string landType = GamePlay.gpLandType(actor.Pos().x, actor.Pos().y).ToString();
string gpSectorName = GamePlay.gpSectorName(actor.Pos().x, actor.Pos().y).ToString();
//Console.WriteLine("AiGroundActor: " + actor.Name() + " Type: " + ground.Type() + " Grid: " + gpSectorName + " Land Type: " + landType);
}
Then eventually i got theme all... or is there any much simpler method to do
Ваши права
- Вы не можете создавать новые темы
- Вы не можете отвечать в темах
- Вы не можете прикреплять вложения
- Вы не можете редактировать свои сообщения
-
Правила форума