Page 1 of 1
Can I change which team owns a CP through LUA? [Solved]
Posted: Mon Nov 14, 2016 4:52 am
by SkinnyODST
How can I make a different team control a CP owned by another team through LUA? So for e.g: In ZE a CP is owned by team 2, what code do I write to make it owned by team 4 through the LUA?
Re: Can I change which team owns a CP through LUA?
Posted: Mon Nov 14, 2016 5:10 am
by Deviss
SkinnyODST wrote:How can I make a different team control a CP owned by another team through LUA? So for e.g: In ZE a CP is owned by team 2, what code do I write to make it owned by team 4 through the LUA?
example
SetProperty("cp2", "Team", "4")

Re: Can I change which team owns a CP through LUA?
Posted: Mon Nov 14, 2016 5:11 am
by AnthonyBF2
Re: Can I change which team owns a CP through LUA?
Posted: Mon Nov 14, 2016 5:14 pm
by Marth8880
SetObjectTeam("cpname", teamIndex) should work too.
Re: Can I change which team owns a CP through LUA?
Posted: Tue Nov 15, 2016 12:45 am
by SkinnyODST
Awesome thanks guys!