CuteCumber
Member
- Reaction score
- 4
Well. I've got a problem on how to revive normal unit and solved it by using some trigger I've seen on older posts. But I got another problem. My unit will revive properly, but when its corpse decay and bones are gone, the items are created again at his dying spot. I used Peasant for that unit.
Trigger:
- Revive P2
- Events
- Unit - A unit Dies
- Conditions
- (Unit-type of (Triggering unit)) Equal to (==) Peasant (Human)
- ((Triggering unit) is owned by Player 2 (Blue)) Equal to (==) True
- Actions
- Do Multiple ActionsFor each (Integer A) from 1 to 6, do (Actions)
- Loop - Actions
- Set P2Item[(Integer A)] = (Item carried by (Triggering unit) in slot (Integer A))
- Loop - Actions
- Wait 10.00 game-time seconds
- Unit - Create 1 Peasant (Human) for Player 2 (Blue) at HumanRevivePoint facing Default building facing (270.0) degrees
- Do Multiple ActionsFor each (Integer A) from 1 to 6, do (Actions)
- Loop - Actions
- Hero - Give (Last created item) to (Last created unit)
- Item - Create (Item-type of P2Item[(Integer A)]) at HumanRevivePoint
- Loop - Actions
- Do Multiple ActionsFor each (Integer A) from 1 to 6, do (Actions)
- Camera - Pan camera for (Owner of (Last created unit)) to HumanRevivePoint over 0.00 seconds
- Selection - Select (Last created unit) for (Owner of (Last created unit))
- Do Multiple ActionsFor each (Integer A) from 1 to 6, do (Actions)
- Events