i have a hero that gains xp. I want to have him get in a tank to drive around in. Now, I want to have it to where my hero can get exp from the tank getting kills while he is in it. I have multiple heroes, so I want the xp to only go to the one in the tank, and if another hero get in the same goes for him. Any help would be appreciated.
i have a hero that gains xp. I want to have him get in a tank to drive around in. Now, I want to have it to where my hero can get exp from the tank getting kills while he is in it. I have multiple heroes, so I want the xp to only go to the one in the tank, and if another hero get in the same goes for him. Any help would be appreciated.
@keyes13: Go
Use the Add XP to unit library, if you don't already.
I don't know how many tanks do you have, but you'll need a variable for each one (you can use an array) that knows what hero is inside.
Hero_Inside_Tank_Variable = Raynor (for example)
Then use a trigger:
Any Unit Dies
Conditions
Type of Killing Unit == Tank
Actions
Add XP to Unit 100, Hero_Inside_Tank_Variable
@fr0d0b0ls0n: Go
Thanks for the help. I can't seem to find Add XP for the unit library.
Never mind, I figured that part out. thanks