How to make a transport deliver reinforcements?

For AI and campaign script related discussions and questions
Post Reply
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

How to make a transport deliver reinforcements?

Post by aubergine »

I'm struggling to wrap my head around the process for making a transport fly in (from outside the map) and deliver reinforcements.

Do I need to addObject() to create the transport and reinfs? Also, how do I get the reinfs on to the transport if they are outside visible area of map? There seems to be bounds check on map dimensions when creating stuff, so not sure I can even create droids outside the map area...

Also, is setReinforcementTime() in 1/10ths of a second or seconds? And any chance of a getReinforcementTime() function ;)
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: How to make a transport deliver reinforcements?

Post by Per »

setReinforcementTime() now uses seconds. As for how it all works... I don't know yet.
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base
Contact:

Re: How to make a transport deliver reinforcements?

Post by Goth Zagog-Thou »

The way it currently works is:

a) You need to have an available base to get units from (LoadLevel([name as it appears in the .wrf), OFF_KEEP)) (or some such)

b) set a Landing Zone where you want the units delivered

c) Spawn in a Transport at the LZ (?) or fly one in using flyTransporterIn(x, y) (or some such).
Post Reply