Page 1 of 1
Load CPs from conquest layer in hero assault mode [Solved]
Posted: Tue Jul 27, 2010 8:54 am
by martin105038
I´m adding Hero Assault mode to a map, and I want to use the same CPs I use in conquest mode, so I load the conquest layer with ReadDataFile("dc:KOR\\KOR.lvl", "KOR_conquest") in my eli lua. It works fine, except that the CPs are capturable. Is there any way of loading in hero assault the same bases from the conquest layer but making them uncapturable?
Thanks
Re: Loding CPs from conquest layer in hero assault mode
Posted: Tue Jul 27, 2010 8:57 am
by Fiodis
Yep, put a DeactivateRegion("cp's_capture_region") line in your LUA for each capture region.
I think. Not actually exactly sure if that'll work.
Re: Loding CPs from conquest layer in hero assault mode
Posted: Tue Jul 27, 2010 9:21 am
by fasty
You could just load two different layers and not make a capture region for assault in Zero Editor.
Re: Loding CPs from conquest layer in hero assault mode
Posted: Tue Jul 27, 2010 9:46 am
by martin105038
Fiodis wrote:Yep, put a DeactivateRegion("cp's_capture_region") line in your LUA for each capture region.
I think. Not actually exactly sure if that'll work.
I tried this, but it didn´t work.
fasty wrote:You could just load two different layers and not make a capture region for assault in Zero Editor.
Yes, you´re right, the problem is that I´m using 8 CPs in conquest and I wanted to use the same 8 CPs in Hero assault.
EDIT:
I fixed it using SetProperty("cp1", "CaptureRegion", ""). Thanks for your help