Prevent humans and bots from capturing command posts [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
DeathTrooperLeader
Private Recruit
Posts: 20
Joined: Mon Sep 18, 2017 4:33 am
Projects :: No Mod project currently.
Games I'm Playing :: SWB2
xbox live or psn: No gamertag set

Prevent humans and bots from capturing command posts [Solved

Post by DeathTrooperLeader »

In the fake console, there is a button that disables command post-capture. Does anyone know the code to put in the .lua script for your map?
Last edited by DeathTrooperLeader on Sun Oct 08, 2017 8:59 pm, edited 1 time in total.
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Prevent humans and bots from capturing command posts

Post by thelegend »

It's AllowAISpawn(1, false)
1=team like 1,2, ATT, DEF, REP, CIS....
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Prevent humans and bots from capturing command posts

Post by Marth8880 »

This should work, just put it in ScriptPostLoad:

Code: Select all

SetClassProperty("com_inf_default", "CapturePosts", "0")
Resources:
http://www.secretsociety.com/forum/down ... meters.txt
Post Reply