function CreateItemWithoutShadow takes integer iid, real x, real y, string shadowfile returns item
local image i=CreateImage(shadowfile, 64, 64, 0, 0,0,0,64,64,0, 3)
if GetHandleId(i)==-1 then
debug call BJDebugMsg("CreateUnitWithShadow: Invalid path for new shadow!")
return null
endif
call DestroyImage(i)
set bj_lastCreatedItem = CreateItem(iid, x, y)
call DestroyImage(i)
return bj_lastCreatedItem
endfunction
function Trig_Untitled_Trigger_077_Actions takes nothing returns nothing
call CreateItemWithoutShadow('ratc', -400, -1000, "ReplaceableTextures\\CommandButtons\\BTNMortarTeam.blp")
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_077 takes nothing returns nothing
set gg_trg_Untitled_Trigger_077 = CreateTrigger( )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Untitled_Trigger_077, Player(0) )
call TriggerAddAction( gg_trg_Untitled_Trigger_077, function Trig_Untitled_Trigger_077_Actions )
endfunction