- Joined
- Jul 19, 2010
- Messages
- 99
So i am trying to make a newer version of World War Z, but i am stuck on the simplest trigger... how to replace a city when zombies attack it. Like place an infected city and remove the human city. I swear, i know its so easy but yet i can't figure it out. I have tried using hashtables to save the old unit location and the owning player of the killing unit so it goes something like this..
Event = Generic event, a unit dies
Condition = Dying unit is equal to city
Action;
If, then else multiple function;
Condition = (Owner of (killing unit)) is equal to player 12 (brown)
Action = Save player handle (owner of killing unit) as 2 of 1 in Location, Save Location of (Dying unit) as 1 of 2 in location, create 1 (City) for (load player handle 2 of 2 in (Location)) at (Load 1 of 2 in (Location))
Else Actions = None
Else Actions = None
Help?
Event = Generic event, a unit dies
Condition = Dying unit is equal to city
Action;
If, then else multiple function;
Condition = (Owner of (killing unit)) is equal to player 12 (brown)
Action = Save player handle (owner of killing unit) as 2 of 1 in Location, Save Location of (Dying unit) as 1 of 2 in location, create 1 (City) for (load player handle 2 of 2 in (Location)) at (Load 1 of 2 in (Location))
Else Actions = None
Else Actions = None
Help?