Data Realms Fan Forums http://45.55.195.193/ |
|
Give gold to the enemy team http://45.55.195.193/viewtopic.php?f=75&t=31172 |
Page 1 of 1 |
Author: | smithno13 [ Wed Jun 06, 2012 10:10 pm ] |
Post subject: | Give gold to the enemy team |
For when you want a real fight, because with my experience so far... They run out of money and just sit there and stare at you. Maybe a sniper that just fires gold? Simple idea, and I could do it myself if I actually had any freetime... |
Author: | Asklar [ Thu Jun 07, 2012 1:12 am ] |
Post subject: | 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. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |