I am trying to write a trigger to detect when construction of a specific building begins to swap it out with another building (later will be replaced to swap with a random building from an array).
I have a trigger which is working to check when the construction of my "dummy building" begins, and I tried using the "replace unit" action:
Events-
Unit - ("DummyBuilding" from the Global data table) construction is Started
Actions-
Unit - Replace (Triggering unit) with a Photon Cannon using New Unit's Default vitals
but instead of replacing the building, it's replacing the worker that is constructing the building. Any ideas on how I can get this working?
I am trying to write a trigger to detect when construction of a specific building begins to swap it out with another building (later will be replaced to swap with a random building from an array).
I have a trigger which is working to check when the construction of my "dummy building" begins, and I tried using the "replace unit" action: Events- Unit - ("DummyBuilding" from the Global data table) construction is Started Actions- Unit - Replace (Triggering unit) with a Photon Cannon using New Unit's Default vitals
but instead of replacing the building, it's replacing the worker that is constructing the building. Any ideas on how I can get this working?
@Logikz0: Go
Change 'Triggering unit' by 'Triggering Progress Unit', this should do the trick ! It's stopping the building process though.