Tanks don't spawn in specified zones

Questions and answers about the how and why of making maps.
Post Reply
cepris
Private First Class
Private First Class
Posts: 132
Joined: Wed Dec 01, 2010 6:49 am

Tanks don't spawn in specified zones

Post by cepris » Wed Jan 26, 2011 2:46 am

I am making a CTF map. I add a zone for testing because it was annoying with the tank spawning in a random place each time. It all worked fine, until I added the team base. When I added the base, the tank always spawned there, and never at the zone. How can I set it so that it spawns in a random designated area (as I am getting to the point where i will be adding my actual zones!). Thanks.

User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Tanks don't spawn in specified zones

Post by Bambino » Wed Jan 26, 2011 2:53 am

http://my.bzflag.org/w/World_(object)

Code: Select all

world
 freeCtfSpawns
end
This will prevent players from spawning on their base after a cap or when they join the map as a player. Make sure the spawn zones are setup correctly to let whatever team spawn inside.
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague

Post Reply