HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

how can i make an ability change owner of a building to the player activating it

02-08-2014, 08:21 PM#1
andreasaspenberg
i am trying to port the gameplay from gangland to warcraft 3. i need certain buildings to change owner when i activate an ability in the building that is based on charge(gold and lumber). can anybody help me with that.
02-11-2014, 01:52 PM#2
Anitarf
If you use the "unit is issued an order" event, you should be able to get the player who issued the order by using "triggering player". So, you just need to detect when the ability's order is issued to the unit.
02-11-2014, 09:07 PM#3
andreasaspenberg
i just tested multiple versions of that solution and nothing happens except that the game lags. triggering player is likely the problem though because i havent ever gotten that working so it is likely something that blizzard forgot to finish. please try to come up with something else.