Re: Give gold to the enemy team
Or you could create an item which has a script which goes:
Code:
function Create(self)
self.GoldGiven = 2000
for actor in MovableMan.Actors do
if actor.Team ~= 0 then
self.OpposingTeam = actor.Team
end
end
self.TeamFunds = ActivityMan:GetActivity():GetTeamFunds(self.OpposingTeam)
ActivityMan:GetActivity():SetTeamFunds(self.TeamFunds + self.GoldGiven, self.OpposingTeam)
end
That should work as long as you are the red team. This is just a quick thing, it might not work.