Nano
New Member
- Reaction score
- 0
Hey guys,
I'm making a TD and one of the creep types is a 'multiplier' type. You kill one of them and out pop two half size copies of it.
However I've run into some issues in that my approach seems to be producing no positive results.
Here's what I have currently:
Note: multiplier_type is a Unit Type variable that is set at the start of the round/wave
This seemingly does nothing. Am I working off incorrect assumptions? Can I not get the position and facing of the triggering unit since it's dead?
Secondly, assuming there is a way to do the above correctly, I have this:
From this I'm trying to grab all the orders that the dead creep had (creeps are assigned all their movement orders when they're spawned) and I want the 'multiplied' creeps to move exactly as their dead parent was going to.
I couldn't find any action that seemed to match this so I went for the loop through each order (up to an arbitrary number), but is there a better way to do this?
Thanks
I'm making a TD and one of the creep types is a 'multiplier' type. You kill one of them and out pop two half size copies of it.
However I've run into some issues in that my approach seems to be producing no positive results.
Here's what I have currently:
Trigger:
- Events
- Unit - Any Unit dies
- Conditions
- (Owner of (Triggering unit)) == 0
- multiplier_round == 1
- Actions
- Unit - Create 1 multiplier_type for player (0) at (Position of (Triggering unit)) facing (Facing of (Triggering unit)) degrees (Ignore Placement)
Note: multiplier_type is a Unit Type variable that is set at the start of the round/wave
This seemingly does nothing. Am I working off incorrect assumptions? Can I not get the position and facing of the triggering unit since it's dead?
Secondly, assuming there is a way to do the above correctly, I have this:
Trigger:
- General - For each integer order_counter from 1 to 10 with increment 1, do (Actions)
- Actions
- Unit - Order (Last created unit) to ((Triggering unit) order(order_counter)) (After Existing Orders)
- Actions
From this I'm trying to grab all the orders that the dead creep had (creeps are assigned all their movement orders when they're spawned) and I want the 'multiplied' creeps to move exactly as their dead parent was going to.
I couldn't find any action that seemed to match this so I went for the loop through each order (up to an arbitrary number), but is there a better way to do this?
Thanks