Removing regions through LUA [Solved]
Moderator: Moderators
- Kingpin
- Jedi

- Posts: 1096
- Joined: Fri Sep 13, 2013 7:09 pm
- Projects :: The Sith Wars II
- Location: Denver, CO
- Contact:
Removing regions through LUA [Solved]
Is it possible to remove regions through LUA? What I mean is if I am loading, say, the conquest layer from Coruscant and want to get rid of the CP Capture Regions without using ZeroEditor, would that be possible? Thanks.
Last edited by Kingpin on Sat Jan 10, 2015 5:41 pm, edited 1 time in total.
- AnthonyBF2
- Sith

- Posts: 1255
- Joined: Wed Aug 21, 2013 3:55 pm
- Projects :: PS2+PSP Overhaul
Re: Removing regions through LUA
RemoveRegion("")
- Kingpin
- Jedi

- Posts: 1096
- Joined: Fri Sep 13, 2013 7:09 pm
- Projects :: The Sith Wars II
- Location: Denver, CO
- Contact:
- AnthonyBF2
- Sith

- Posts: 1255
- Joined: Wed Aug 21, 2013 3:55 pm
- Projects :: PS2+PSP Overhaul
Re: Removing regions through LUA (Solved)
Some times those CP objects will have a radius of it's own if there is no region that the game will fall back on and still make the base captureable.
You can ensure they do not by adding
SetProperty("cpname", "Radius", 0)
You can ensure they do not by adding
SetProperty("cpname", "Radius", 0)
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Removing regions through LUA (Solved)
You don't have to do any of those things if you just do:
Which works every time.
Code: Select all
SetProperty("cpname", "CaptureRegion", "")