Page 1 of 1
Removing regions through LUA [Solved]
Posted: Sat Jan 10, 2015 5:33 pm
by Kingpin
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.
Re: Removing regions through LUA
Posted: Sat Jan 10, 2015 5:36 pm
by AnthonyBF2
RemoveRegion("")
Re: Removing regions through LUA
Posted: Sat Jan 10, 2015 5:41 pm
by Kingpin
Thanks

Re: Removing regions through LUA (Solved)
Posted: Sat Jan 10, 2015 5:44 pm
by AnthonyBF2
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)
Re: Removing regions through LUA (Solved)
Posted: Sat Jan 10, 2015 6:30 pm
by AQT
You don't have to do any of those things if you just do:
Code: Select all
SetProperty("cpname", "CaptureRegion", "")
Which works every time.