Page 1 of 1

Prevent players from spawning at 1 CP but allow AI [Solved]

Posted: Tue Dec 30, 2008 3:39 pm
by ThePanda
Preventing players from spawning at one CP but allowing bots to spawn, and vice versa.

I'm working on a map, and I've been trying to find out a way to make all bots spawn at one specific CP, but not the player. And likewise, letting the player spawn at any other CP, but not the bots. Are there any easy solutions for this?

I've tried a few searches, but they yielded no helpful results (or my eyes don't work).

Re: Preventing players from spawning at one CP but allowing bots

Posted: Tue Dec 30, 2008 3:43 pm
by Grev
Im not sure, but I think invisible cps will work. Look in the adding locals FAQ for info on adding invisible cps, and when setting the invisible base to a team, just set it to your team. You won't be able to select it, but AI will spawn at it.

Re: Preventing players from spawning at one CP but allowing bots

Posted: Tue Dec 30, 2008 4:29 pm
by ThePanda
Thanks man, it worked :).

I got the AI to only spawn at the CP I wanted by setting the CPs' 'AISpawnWeight' to a high number (1000), while I set the 'AISpawnWeight' on the other CPs to something like 3. The invisible CP doesn't show on the map, so you can't select it either.

This is a decent solution, thanks Grev :).

Topic can be closed.