Unit spawn when picked destructible dies

morcius

New Member
Reaction score
1
I need to finish this trigger :
Code:
Untitled Trigger 001
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Destructible - Pick every destructible in (Playable map area) and do (Destructible - Kill (Random destructible in Zergs <gen>))

After the egg sack dies at teh same point must spawn the zergling how can i trigger that?
 

Squll2

je'ne sais pas
Reaction score
76
Unit - Create <number> <w/e u want> @ Position of destructiable.. or mabye use unit position i think theres a destructable option though..


(hand written, im not sure, check)

understand me? :p or do i need to explain more?

_________________

Offtopic:

ZOMG 99 REP ARRRRRRRRRRGHHH
 

morcius

New Member
Reaction score
1
i tried to create unit at position of picked destructible etc... that wont work or i did smth wrong ... :confused::banghead:
 

Squll2

je'ne sais pas
Reaction score
76
im not sure, show me the code u used to try create the thging for picked destructable
 

morcius

New Member
Reaction score
1
Smth like that tryed more variations
Code:
Untitled Trigger 001
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Destructible - Pick every destructible in (Playable map area) and do (Destructible - Kill (Picked destructible))
        Unit - Create 1 Zergling for Player 1 (Red) at (Position of (Dying destructible)) facing Default building facing (270.0) degrees
 

Squll2

je'ne sais pas
Reaction score
76
EDIT!

this works
Code:
Trig
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Destructible - Pick every destructible in (Playable map area) and do (Actions)
            Loop - Actions
                Destructible - Kill (Picked destructible)
                Unit - Create 1 Footman for Player 1 (Red) at (Position of (Picked destructible)) facing Default building facing degrees
                Destructible - Remove (Picked destructible)

This works, if u dont have the Destructible - Remove (picked destructible) after creating the units, the units will keep spawning in the already dead destructables old positions
 

morcius

New Member
Reaction score
1
Umm thats not that i need all egs jsut being destroyed at the same time i need to pick and destroy thems every one second one egg.
Or maybe i can add expirtaion timer or death animation on egg then create unit ?...No idea
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Event:
- Time - Every 1.0 seconds
Conditions:
Actions:
- Set myDestructibleVariable = Random destructible in <some region>
- Set myPointVariable = Position of (myDestructibleVariable)
- Destructible - Remove myDestructibleVariable
- Unit - Create 1 <whatever> for <some player> at myPointVariable facing default
- Custom script: call RemoveLocation( udg_myPointVariable )
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top