Outpost Universe Forums
Projects & Development => Outpost 2 Programming & Development => Topic started by: Angellus Mortis on July 31, 2009, 03:13:09 AM
-
Okay, this kind if AI related. The map_id for the Vehicle Factory (mapVehicleFactory) is doing something very wrong. If I have a trigger for the AI to build on, the ConVec builds nothing; just the bulldozed land and tube appear. If use the CreateUnit function at the start to give the AI a Vehicle Factory, it does the same thing: just bulldozed land and tubes, NO VF!!!! I am using the survtech if that has anything to do with it. Does anyone know why?
-
Can we get some sample code?
-
Can we get some sample code?
I just used the simple TethysGame::CreateUnit function:
TethysGame::CreateUnit(scriptGlobal.VechicleF1, (mapVehicleFactory), LOCATION(14-1, 33-1), 1, mapNone, 0);
That on my game generated the non existent VF.
Go here to download the mission to see it for yourself:
Colony Games (http://forum.outpost2.net/index.php?act=ST&f=39&t=4607&st=0#entry68346)
The code has also been posted on SVN.
-
Don't put the mapVechicleFactory in parenthesis.
-
It was not that. It was an interference with my AIProc(). I fixed it now. Thanks anyway.
-
Well, with the amount of code you've shown, I couldn't have located the actual problem.
You're welcome anyway.