Sgqvur
FullOfUltimateTruthsAndEt ernalPrinciples, i.e shi
- Reaction score
- 62
So basically there are two placed units on the map (three with the start location)
1. gg_unit_hpea_0001
2. gg_unit_hfoo_0002
and here's the code that doesn't do what i think it should/has to do:
So why is the peasant (gg_unit_hpea_0001) ding instead of the footman(gg_unit_hfoo_0002)?
PS: changeunit should probably be change2corpse ^^
1. gg_unit_hpea_0001
2. gg_unit_hfoo_0002
and here's the code that doesn't do what i think it should/has to do:
JASS:
function changeunit takes unit u returns nothing
set u = gg_unit_hfoo_0002
endfunction
function Trig_test_Actions takes nothing returns nothing
local unit u2 = gg_unit_hpea_0001
call changeunit(u2)
call KillUnit(u2)
endfunction
//===========================================================================
function InitTrig_test takes nothing returns nothing
set gg_trg_test = CreateTrigger( )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_test, Player(0) )
call TriggerAddAction( gg_trg_test, function Trig_test_Actions )
endfunction
So why is the peasant (gg_unit_hpea_0001) ding instead of the footman(gg_unit_hfoo_0002)?
PS: changeunit should probably be change2corpse ^^