Non Capturable command post?

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
FiftyAuto
Private Recruit
Posts: 17
Joined: Mon Jun 25, 2018 4:47 pm
Projects :: No Mod project currently.
Games I'm Playing :: Battlefront2
xbox live or psn: No gamertag set

Non Capturable command post?

Post by FiftyAuto »

So I want a command post that you can spawn from and change class but not capture, I read that SetProperty("cpname", "cpregion", "") in my case SetProperty("cp1", "cp1_capture", "") supposedly disables the capture function of command posts but I have yet to implement this with any means of succses its not clear which lua file im suppost to place this line of code in or where. im assuming this is super easy to do but im having trouble if anyone can help that would be greatly appreciated.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Non Capturable command post?

Post by AQT »

I don't have a lua file on hand to look at, but the line would actually be:

Code: Select all

SetProperty("cp1", "CaptureRegion", "")
Place it somewhere around:

Code: Select all

objective: conquest
In your _con.lua file.
FiftyAuto
Private Recruit
Posts: 17
Joined: Mon Jun 25, 2018 4:47 pm
Projects :: No Mod project currently.
Games I'm Playing :: Battlefront2
xbox live or psn: No gamertag set

Re: Non Capturable command post?

Post by FiftyAuto »

Alright so this did allow units to spawn and change classes in the inteneded location but the cp capture is now just in some random spot near one of my vehicles spawns which is pretty wierd ill see if im doing something wrong but thanks for helping and being patent with me.


EDIT
So i figured out the solution and it works perfectly thanks a ton.
Post Reply