Page 1 of 1

Chinook Error

Posted: Sat Jul 13, 2019 4:40 am
by Secg
I need help :PB

I've incorporated both {EMC}Methuselah96 and j3rry's codes to make the Chinook a viable transport obj.

However I keep getting this error message :( whenever I tried to play any campaign mission with Chinook

Code: Select all

{CreateObject} Error! Expected function 'TransportObj'
Where did I go wrong? idk

Re: Chinook Error

Posted: Sat Jul 13, 2019 12:16 pm
by TommyCD1
Sounds like an issue with your map's objects.cfg file. If you are trying to place it via objects.cfg, then it will need it's various scopes defined for the game.

Code: Select all

CreateObject("army.building.guardtower", 81)
{
  MapObj()
  {
    HitPoints(1.000000);

    Position()
    {
      Pos(340.000000, -23.699997, 764.000000);
      Right(1.000000, 0.000000, 0.000000);
      Up(0.000000, 1.000000, 0.000000);
      Front(0.000000, 0.000000, 1.000000);
    }

    Zip();
  }

  UnitObj()
  {
    Team("Tan");
  }
  WallObj();
}
In this example, the guard tower is being placed. It needs a MapObj definition, a UnitObj definition, and because the guardtower is a wall unit, it will specifically need a WallObj definition.

Re: Chinook Error

Posted: Sat Jul 13, 2019 1:53 pm
by Secg
TommyCD1 wrote: Sat Jul 13, 2019 12:16 pm Sounds like an issue with your map's objects.cfg file. If you are trying to place it via objects.cfg, then it will need it's various scopes defined for the game.
Error fixed! :SWEET:

Thanks, TommyCD1! :ROCK: