kiren17
New Member
- Reaction score
- 2
how would i get a unit when it dies to make multiple corpses instead of 1...
Unit - Create a Footman corpse for Player 1 (Red) at (Center of (Playable map area))
Some Trigger
Events
Unit - A unit Dies
Conditions
*Add conditions here if you want*
Actions
Set temploc = (Position of (Triggering unit))
For each (Integer A) from 1 to *How many corpses you want*, do (Actions)
Loop - Actions
Unit - Create a *Some Unit* corpse for (Owner of (Triggering unit)) at temploc
Custom script: call RemoveLocation(udg_temploc)
Multi Corpses
Events
Unit - A unit Dies
Conditions
unit is equal to *my unit*
Actions
Set temploc = (Position of (Triggering unit))
For each (Integer A) from 1 to *my number of corpses*, do (Actions)
Loop - Actions
Unit - Create a *triggering unit*(or same as condition) corpse for (Owner of (Triggering unit)) at temploc
Custom script: call RemoveLocation(udg_temploc)