- Joined
- Aug 11, 2009
- Messages
- 605
If anyone could share their creep respawn triggers or help me create one it would be great. Cant get any available to work properly.
Need player 10, 12, Neutral Hostile and Neutral Passive units to respawn 40 seconds after being killed. Not Heroes. They should respawn at the location they are at when the map starts and should face the same direction as they do when the map starts.
Using normal world editor so need it in GUI or Jass.
Would really appreciate any help on this, +rep and credits ofcourse, thx!
EDIT: Ok, so this worked with custom script but since i dont have any knowledge of it i need help to make it work with Player 10, 12, neutral hostile and neutral passive, now its only neutral hostile. Also add in so their facing is correct, now they all just spawn with 270 facing and not the facing they had when map starts. Could anyone help me with these issues?
Need player 10, 12, Neutral Hostile and Neutral Passive units to respawn 40 seconds after being killed. Not Heroes. They should respawn at the location they are at when the map starts and should face the same direction as they do when the map starts.
Using normal world editor so need it in GUI or Jass.
Would really appreciate any help on this, +rep and credits ofcourse, thx!
EDIT: Ok, so this worked with custom script but since i dont have any knowledge of it i need help to make it work with Player 10, 12, neutral hostile and neutral passive, now its only neutral hostile. Also add in so their facing is correct, now they all just spawn with 270 facing and not the facing they had when map starts. Could anyone help me with these issues?
-
Creep Respawn
-
Events
- Unit - A unit Dies
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- (Custom value of (Triggering unit)) Greater than 0
- (Owner of (Triggering unit)) Equal to Neutral Hostile
-
Conditions
-
And - All (Conditions) are true
-
Actions
- Custom script: local integer i = GetUnitTypeId(GetTriggerUnit())
- Custom script: local integer ii = GetUnitUserData(GetTriggerUnit())
- Wait Real_CreepRespawnTime game-time seconds
- Custom script: call SetUnitUserData(CreateUnit(Player(12),i,GetLocationX(udg_Point_Creeps[ii]),GetLocationY(udg_Point_Creeps[ii]),270),ii)
-
Events
Last edited: