Tinki3
Special Member
- Reaction score
- 418
Here's a useful tree revival system:
Code:
ReviveDeadTreesSetup
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Destructible - Pick every destructible in (Entire map) and do (Actions)
Loop - Actions
Trigger - Add to ReviveDeadTrees <gen> the event (Destructible - (Picked destructible) dies)
Custom script: call DestroyTrigger(GetTriggeringTrigger())
Code:
ReviveDeadTrees
Events
Conditions
Or - Any (Conditions) are true
Conditions
(Destructible-type of (Dying destructible)) Equal to Felwood Tree Wall
(Destructible-type of (Dying destructible)) Equal to Ashenvale Tree Wall
Actions
-------- You can change the types of destructables that can be revived in the conditions above --------
Wait 5.00 game-time seconds
Destructible - Resurrect (Dying destructible) with (Max life of (Dying destructible)) life and Show birth animation