Hi!
I’m pretty new to this forum, and mapping, and I need some help doing a spawn exchange.
I’ve read countless tutorials and skimmed through 100’s of pages on forum posts, and I can’t seem to find how to do this. I have a tank, and when it passes Tank Barrier 1, I need the allies to spawn where the axis was, and the axis to spawn farther back. Can someone tell me how to do that in GtkRadiant and with the script? If it matters, I’m using GtkRadiant 1.3.8.
Thanks, hope to hear from you all soon!
-Matthew<3
Need Some Help = Spawn Exchange
Darkix
(Darkix)
#1
ShadowAgent
(ShadowAgent)
#2
you will need to tell in the script that when the tank is at a certain spline, to do that action. im unsure of the following script but whatever
setautospawn 1 "[allied1spawn]" //sets the spawn for allies to their first spawn
setautospawn 0 "[axis1spawn]" //idem for axis
//====
[tankscriptname]
followspline [splinetargetname] (makes the tank moving)
trigger spawnchange (when the tanks is at the point where you want to spawns to be changed you put this)
followspline [nextsplinetargetname] (and it continues normally)
//====
trigger spawnchange
{
setautospawn 1 "[allied2ndspawn]"
setautospawn 0 "[axis2ndspawn]"
}
that should do it. note that all the spawns execpt allied 2nd must have the “startactive” box ticked (if it already exists in that version, else just enter the spawnflags value) to make it work. thats why the setautospawn command is at the start of the code to tell the game who spawns where.