Disallow Team to Capture CP
Moderator: Moderators
- Blade
- Captain

- Posts: 496
- Joined: Fri Apr 04, 2008 11:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Disallow Team to Capture CP
I'm toying around with a map, and I added a local team. They spawn very near to the center CP of the map, and continually capture it for themselves, which I do not want to happen. Is there a way to keep the local team from capturing CP's, but allow the other two to capture them?
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Disallow Team to Capture CP
Yes, I believe there's a LUA code something along the lines of AllowCpCapture, although I don't know if it will stop a single team from capturing it or if it will make all cp's uncapturable. The example finder would answer that one, I think.
- phazon_elite
- Rebel Colonel

- Posts: 597
- Joined: Tue Jan 16, 2007 9:10 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
- Contact:
Re: Disallow Team to Capture CP
The way I do it is to simply put:
in the unit's odf. You'll have to do it for every unit you don't want to capture cp's, though.
Hope that helped!
Code: Select all
CapturePosts = 0Hope that helped!
- Blade
- Captain

- Posts: 496
- Joined: Fri Apr 04, 2008 11:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Disallow Team to Capture CP
Ah, thanks. That'll work fine, as my local team only has one unit class. Thanks again.
