Page 1 of 1

Alter CP`s in LUA?

Posted: Sat Oct 08, 2016 5:06 am
by SkinnyODST
I have a custom era for my map and I want to change around who owns what CP and which CP`s are neutral. I would like to know if this is possible and how it is done.

Thanks

Re: Alter CP`s in LUA?

Posted: Sat Oct 08, 2016 6:07 am
by thelegend
I see two simple ways:

SetProperty("YourCommandPostNameInZE", "Team", 1)
or
SetObjectTeam("YourCommandPostNameInZE", 1)
.

1 refers to your team number (0, 1, 2, 3...)

Re: Alter CP`s in LUA?

Posted: Sat Oct 08, 2016 9:23 pm
by SkinnyODST
Works perfectly! Thanks!

EDIT What about HIDING CP`s?

Re: Alter CP`s in LUA?

Posted: Sun Oct 09, 2016 2:32 am
by Marth8880
SkinnyODST wrote:What about HIDING CP`s?
I'm not positive this will work, but it's worth a shot:

Code: Select all

SetProperty("cpName", "IsVisible", 0)
This whole list is always well worth a read: http://www.secretsociety.com/forum/down ... meters.txt

Re: Alter CP`s in LUA?

Posted: Wed Oct 12, 2016 2:31 am
by SkinnyODST
hmm no, didn`t work

Re: Alter CP`s in LUA?

Posted: Wed Oct 12, 2016 2:48 am
by AnthonyBF2
SetProperty("cpName", "HUDIndexDisplay", 0) I don't remember completely what that one does but it I think it makes it now show up on the radar, or not have a number.

If you want to have a cp completely unknown to the player, use com_bldg_controlzone_hidden (or whatever it is called) and make sure to place it where it can't be seen like inside a box or under the map.