Quote:
Originally Posted by TheEnlightenedFlorist
Well, I've been messing around with changing spawn points for a while and I've got it mostly working except for one huge problem.
|
Do you mean this code does not destroy a birthplace for players who already use it?
Code:
foreach (AiBirthPlace bp in GamePlay.gpBirthPlaces())
{
if (bp != null)
bp.destroy();
}
Probably there is a variable in code that stores player's recent bp. Can we access and change it with a script? Or onActorDead | placeExit (or what it is called) force a player to a default bp making him to select a desired bp again?
If we can change the frontline just by loading a new submission with moved frontline, why would we need the first part of the script defining the markers? I am a bit lost.
I came to a simple practical idea to prevent spawning after AF is lost:
1) set trigger starting final an attack on the airfield only when all ground units on it are killed
2) load tanks attacking the af
3) load submission containing new forntline and new bp based on trigger (tanks reached af)
4) spawn arty and tanks to patrol the af.
5) anyone from the side that lost the af spawning on it is killed by arty or tanks and learns a lesson to check the frontline position before spawning.
Not elegant but brutally practical. Did not have time to test it yet.
Anyway we have to find out how to solve the issue in a more user-friendly way ...or ...isn't it a brutal military sim?