Hi guys,
I build a mission with stationary objects
Code:
[Stationary]
Static0 tobruk:ShipUnit.1936_DD gb 114768.54 161728.52 0.00 /sleep 0/skill 2/slowfire 1
Static1 tobruk:ShipUnit.1936_DD de 113472.00 151536.00 0.00 /sleep 0/skill 2/slowfire 1
Static2 tobruk:ShipUnit.1936_DD nn 113616.00 140880.00 0.00 /sleep 0/skill 2/slowfire 1
but when I test the returned array of GamePlay.gpGroundStationary I get null (1st test)
Code:
if (GamePlay.gpGroundStationarys() == null)
{
ToLog("gpGroundStationarys is null");
}
else
{
ToLog("Stationary count : " + oMission.GamePlay.gpGroundStationarys().Length.ToString());
foreach (maddox.game.world.GroundStationary gs in oMission.GamePlay.gpGroundStationarys())
{
ToLog("Ground Stationary : " + gs.Name + " - " + gs.country + " - " + gs.Title + " - " + gs.Category.ToString());
}
}
What's wrong with me ?
Any idea ?
Thanks
Bookmarks