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

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
ThePanda
Private Second Class
Posts: 74
Joined: Sat Dec 20, 2008 4:22 pm

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

Post 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).
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

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

Post 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.
User avatar
ThePanda
Private Second Class
Posts: 74
Joined: Sat Dec 20, 2008 4:22 pm

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

Post 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.
Post Reply