Moderator
M
Moderator
13:02, 7th Apr 2009
Pyritie: I can see this being very useful.
Pyritie: I can see this being very useful.
(6 ratings)
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
local effect lastone = null
call SetUnitVertexColorBJ( GetTriggerUnit(), 100, 100, 100, 10.00 )
call AddSpecialEffectTargetUnitBJ( "origin", GetTriggerUnit(), "war3mapImported\\DemonBirth.mdx" )
set lastone = GetLastCreatedEffectBJ()
call PolledWait( 10.00 )
call DestroyEffectBJ( lastone )
call SetUnitVertexColorBJ( GetTriggerUnit(), 100, 100, 100, 0.00 )
endfunction
//===========================================================================
function InitTrig_build takes nothing returns nothing
set gg_trg_build = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_build, EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerAddAction( gg_trg_build, function Trig_Untitled_Trigger_001_Actions )
endfunction
Woah... this is freaking epic! But where do I import this "birth" effect at?
Nice job D.O.G.!
Are you planning to do some more births?
ok i figured out how it could work:
http://www.hiveworkshop.com/forums/f98/how-replace-building-animation-123122/
JASS:function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing local effect lastone = null call SetUnitVertexColorBJ( GetTriggerUnit(), 100, 100, 100, 10.00 ) call AddSpecialEffectTargetUnitBJ( "origin", GetTriggerUnit(), "war3mapImported\\DemonBirth.mdx" ) set lastone = GetLastCreatedEffectBJ() call PolledWait( 10.00 ) call DestroyEffectBJ( lastone ) call SetUnitVertexColorBJ( GetTriggerUnit(), 100, 100, 100, 0.00 ) endfunction //=========================================================================== function InitTrig_build takes nothing returns nothing set gg_trg_build = CreateTrigger( ) call TriggerRegisterAnyUnitEventBJ( gg_trg_build, EVENT_PLAYER_UNIT_CONSTRUCT_START ) call TriggerAddAction( gg_trg_build, function Trig_Untitled_Trigger_001_Actions ) endfunction
+I've found something I can use it for +rep :>
What you do is set the full path to "SharedModels\UBirth"Does anyone know hot to replace the standard undead building loop with this one or any other way to use it?