The items always drop when you die, no matter if you are reviving using triggers or a revive ability, but you can work around it till they fix that.
What I did was when a unit dies, I look for every unit that is an item in the same exact position as the dieing unit and hide them.
Then you wait for the respawn time, revive the unit, recreate every item you found earlier in the same point where the hero died on the hero inventory, then destroy the items on the ground.
The reason for hiding is because you can't manage the inventory of dead units.
You can also revive units with triggers with this on custom script: "UnitRevive ( unit );"
Where unit is the unit you want to revive, use EventUnit() for the triggering unit.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
The items always drop when you die, no matter if you are reviving using triggers or a revive ability, but you can work around it till they fix that.
What I did was when a unit dies, I look for every unit that is an item in the same exact position as the dieing unit and hide them. Then you wait for the respawn time, revive the unit, recreate every item you found earlier in the same point where the hero died on the hero inventory, then destroy the items on the ground.
The reason for hiding is because you can't manage the inventory of dead units.
Attachment is a screenshot of the trigger above.
You can also revive units with triggers with this on custom script: "UnitRevive ( unit );" Where unit is the unit you want to revive, use EventUnit() for the triggering unit.