Results 1 to 3 of 3

Thread: gpGroundStationarys() is null

  1. #1
    Team Fusion
    Join Date
    Oct 2020
    Location
    Santa Belgica
    Posts
    311
    Post Thanks / Like
    Total Downloaded
    197.43 MB

    gpGroundStationarys() is null

    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
    "You can teach monkeys to fly better than that!"

    Win 11 Pro - I5-12600KF - 32GB Ram - RTX 3080 TI 12GB (non OC) - SSD Sata 970 GBB (System) - NVMe 980 GB (games storage) - Koorui 27'' 144Hz (WQHD) - HP Reverb G2 v2 -
    WMR environment : Empty room (SkySpaces) - SteamVR resolution : 2192x2144 (48%)
    nVidia driver : 561.09

  2. #2
    Team Fusion
    Join Date
    Oct 2020
    Location
    Santa Belgica
    Posts
    311
    Post Thanks / Like
    Total Downloaded
    197.43 MB

    Re: gpGroundStationarys() is null

    Got it!

    ShipUnit is not instance of GroundStationary but AiGroundActor
    "You can teach monkeys to fly better than that!"

    Win 11 Pro - I5-12600KF - 32GB Ram - RTX 3080 TI 12GB (non OC) - SSD Sata 970 GBB (System) - NVMe 980 GB (games storage) - Koorui 27'' 144Hz (WQHD) - HP Reverb G2 v2 -
    WMR environment : Empty room (SkySpaces) - SteamVR resolution : 2192x2144 (48%)
    nVidia driver : 561.09

  3. Likes GANIX liked this post
  4. #3
    Combat pilot
    Join Date
    Oct 2021
    Posts
    127
    Post Thanks / Like
    Total Downloaded
    12.95 MB

    Re: gpGroundStationarys() is null

    Thanks Sleepy_Fly,
    the more we share the more we get ...

    Quote Originally Posted by Sleepy_Fly View Post
    Got it!

    ShipUnit is not instance of GroundStationary but AiGroundActor

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •