Moderator
M
Moderator
00:40, 29th Aug 2012
Magtheridon96:
Good job. 4/5
Magtheridon96:
Good job. 4/5
Preload System

Events


Map initialization

Conditions

Actions


-------- Create PIS_Unit --------


Custom script: set udg_PS_Unit = CreateUnit(Player(15),'hpea',0,0,0)


Custom script: call ShowUnit(udg_PS_Unit, false)


-------- Add locust ability for PIS_Unit --------


Custom script: call UnitAddAbility(udg_PS_Unit,'Aloc')


-------- Add inventory ability for PIS_Unit --------


Custom script: call UnitAddAbility(udg_PS_Unit,'AInv')


Custom script: endfunction


-------- Main function - Preload Item --------


Custom script: function PreloadItem takes integer i returns nothing


Custom script: call RemoveItem(UnitAddItemById(udg_PS_Unit, i))


Custom script: endfunction


-------- Main function - Preload Ability --------


Custom script: function PreloadAbility takes integer i returns nothing


Custom script: call UnitAddAbility(udg_PS_Unit,i)


Custom script: endfunction


-------- Main function - Stop Reload --------


Custom script: function StopPreload takes nothing returns nothing


Custom script: call RemoveUnit(udg_PS_Unit)
call PreloadItem(itemtypeid)
call PreloadAbility(abilityid)
call StopPreload()
Custom script: call PreloadItem('afac')
Custom script: call PreloadAbility('Amls')
Custom script: call StopPreload()