Trigger that detects when a unit dies via timer expiration

SarChasm

New Member
Reaction score
15
Trigger:
  • ChildGrow
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Dying unit)) Equal to Female Child
        • Then - Actions
          • Unit - Remove (Dying unit) from the game
          • Unit - Create 1 Villager (Female) for (Owner of (Dying unit)) at (Position of (Dying unit)) facing Default building facing degrees
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Dying unit)) Equal to Male Child
        • Then - Actions
          • Unit - Remove (Dying unit) from the game
          • Unit - Create 1 Villager (Male) for (Owner of (Dying unit)) at (Position of (Dying unit)) facing Default building facing degrees
        • Else - Actions
          • Do nothing


The obvious problem with this is that it will be triggered by the child dying via any method. Children have an expiration timer, and I need to have it so that this will only be triggered if the child's cause of death was by that timer.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top