Posted by: ytuio9 - Tuesday, October 12, 2010 11:13:51 AM
Well I'm pretty new to modding and map making in general, and i was trying to make it so an AI vehicle spawned every 4 minutes at the edges of the map in a transport, dropped some units and ordered them to attack players. Is it going to work if i put the script in the PlayerCivilan folder? I get the spawning thing ok, but how do i put units in it, and how do i make them evacuate when they reach the ground?
Any help would be appreciated :)
Posted by: Drummin - Sunday, October 17, 2010 3:42:11 PM
Using Player Civilian will limit you to only using named units instead of teams. Spawn your "unit(s)" and have the "TRANSPORT" run a script sequentially. Have the transport move to the rally point, load "Units" into the transport, (wait*), have transport move to drop point, unload, tell units to hunt, move transport back to rally point.
*At any point in this script you might need the script to idle for a second or two, for example to load units so just add the line in the script to idle for X seconds.
I've used something like this before using an AI player but you might get it to work using named units for PlyCivilian.