| 08-23-2002, 11:08 AM | #1 |
Guest | is it possible to replace the EXACT same UNIT with EXACT same codes. I have a problem.. i have a unit on if any unit comes within range of it they die... but when unit dies and i ask to replace exact same unit (sheep002) it replaces it .. but the code of having units die when they come in range is removed.. How do i make it so the replaced unit comes the exact same rather than a duplicate (sheep003). I have tried removing unit from game after death and replacin same unit but no success.. please help. |
| 08-24-2002, 05:26 AM | #2 |
Guest | Rule of thumb, whenever a trigger asks for a unit, NEVER select a unit for it to do the action on. Never ever ever. It's so annoying. Create a Unit Variable called Sheepy. Place a region under the sheep. Let's call it Sheep_Spawn. Event -> Varies Condition -> None Action -> Create Sheep at Center of Sheep_Spawn Set Variable Sheepy = Last Created Unit ==========Your Other triggers=========== Event for Sheep Death should be Event - > Player(x) Unit Dies Condition -> Unit is Sheepy Actions. How to Handle Respawn Unit - Create Unit Sheep on Sheep_Spawn or position of Sheepy Set Variable Sheepy = Last Created Unit |
