corps

sentess

New Member
Reaction score
1
i need a corpse of a paladin when a specific unit dies i create a corpse in a region for rest of the game how can i do this?

and always need a trigger that removes all ''reds'' units in a region.
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
Code:
Actions
    Unit - Create 1 Paladin for Player 1 (Red) at (Center of (Playable map area)) facing (Position of (Triggering unit))
    Animation - Play (Last created unit)'s death animation
Corpse.


>and always need a trigger that removes all ''reds'' units in a region.
Here:
Code:
Untitled Trigger 002
    Events
        Unit - A unit enters Region 000 <gen>
    Conditions
        (Owner of (Triggering unit)) Equal to Player 1 (Red)
    Actions
        Unit - Kill (Triggering unit)

IF you dont want when a unit owned by player 1 enters the region, but rather every 60 seconds? Change the event to "Time - Every 60.00 seconds of game time". Such an easy thing as the last one, you should figure out yourself but...

Or you can use "Unit - Pick every units owned by player 1 red in region...."
Then do whatever with "picked unit", for instance, remove.
 

San-D

New Member
Reaction score
15
i need a corpse of a paladin when a specific unit dies i create a corpse in a region for rest of the game how can i do this?

and always need a trigger that removes all ''reds'' units in a region.

First. ull have to do this. Look at the Paladins Death animation. Find out when he lies on the ground (in seconds). Create a dummy unit that has the Paladins model. Make a trigger:

Code:
Untitled Trigger 003
    Events
        Unit - A unit Dies
    Conditions
        ((Dying unit) is A Hero) Equal to True
    Actions
        Unit - Create 1 Dummy for (Owner of (Dying unit)) at (Position of (Dying unit)) facing Dying unit's facing degrees
        Unit - Pause (Last created unit)
        Animation - Play (Last created unit)'s death animation
        Wait X seconds
        Animation - Change (Last created unit)'s animation speed to 0.00% of its original speed
        Unit - Move (Last created unit) instantly to (Random point in (UR REGION))

Wait "X" - X means the seconds it takes for the Paladin to hit the floor

Second

Code:
Untitled Trigger 004
    Events
        Ur Events
    Conditions
    Actions
        Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Owner of (Picked unit)) Equal to DEFEATED PLAYER
                    Then - Actions
                        Unit - Remove (Picked unit) from the game
                    Else - Actions
 
General chit-chat
Help Users

      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