a j j bones
New Member
- Reaction score
- 3
i need help making my neutral hostile creeps respawn in 40 seconds, and also is their a way to make a region that they dont respawn in?
Event
Unit dies
Condition
Owner of (triggering unit) = to neutral hostile and Unit is in (region) = false
Action
Wait 40 seconds
set temppoint to (positino of (dying unit))
Create 1 (type of(dying unit)) at temppoint facing blah blah blah
call RemoveLocation(udg_temppoint)
Creep Respawn
Events
Unit - A unit owned by Neutral Hostile Dies
Conditions
Actions
Custom script: local unit temp_unit = GetTriggerUnit()
Custom script: local location temp_point = GetUnitLoc(GetTriggerUnit())
Custom script: call PolledWait (40.00)
Custom script: call CreateNUnitsAtLoc( 1, GetUnitTypeId(temp_unit), Player(PLAYER_NEUTRAL_AGGRESSIVE), temp_point, bj_UNIT_FACING )
Custom script: call RemoveLocation (temp_point)
Custom script: set temp_unit = null
Respawn
Event
Unit- Unit Dies
Condition
Owner of (Triggering unit) equal to Netural Hostile
Action
Wait 40 seconds
Create 1 (Type of(Triggering unit)) at Position of (Triggering unit) Facing Deaful face building
here's a simple way to do it instead of using a variable that will make u face problems with MUI....
Code:Respawn Event Unit- Unit Dies Condition Owner of (Triggering unit) equal to Netural Hostile Action Wait 40 seconds Create 1 (Type of(Triggering unit)) at Position of (Triggering unit) Facing Deaful face building