Chinook Error

Have modding questions or discovered something new? Post here.
Post Reply
User avatar
Secg
Half Track L2
Half Track L2
Posts: 200
Joined: Sat Jun 10, 2017 12:28 am
United States of America

Chinook Error

Post 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
ImageImage
User avatar
TommyCD1
Moderator
Moderator
Posts: 1146
Joined: Tue Jun 04, 2013 8:55 am
Location: East Coast
Contact:
United States of America

Re: Chinook Error

Post 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.
I may not make the best maps, or be the best player, but I put a lot of time, effort, and care into my stuff. That counts for something, right? No.
Image
"Can we order a pizza?"
GameRanger ID: 913974
User avatar
Secg
Half Track L2
Half Track L2
Posts: 200
Joined: Sat Jun 10, 2017 12:28 am
United States of America

Re: Chinook Error

Post 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:
ImageImage
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests