Cokemonkey11
Spell Reviewer
- Joined
- May 9, 2006
- Messages
- 3,575
Doesn't work.
Any suggestions?
Any suggestions?
JASS:
function funCannonColorC takes nothing returns boolean
return true //GetUnitAbilityLevel(GetTriggerUnit(),'B018')>0
endfunction
function funCannonColorA takes nothing returns nothing
local integer r = GetRandomInt(1,255)
local integer g = GetRandomInt(1,255)
local integer b = GetRandomInt(1,255)
call SetUnitVertexColor(GetTriggerUnit(),r,g,b,255)
endfunction
function InitTrig_funCannonColor takes nothing returns nothing
set gg_trg_funCannonColor = CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_funCannonColor,udg_PlayerBoat[3],EVENT_UNIT_DAMAGED)
//call TriggerAddCondition(gg_trg_funCannonColor,Condition(function funCannonColorC))
call TriggerAddAction(gg_trg_funCannonColor,function funCannonColorA)
endfunction