Tar-Quaeron
New Member
- Reaction score
- 0
Could somebody please tell me what is wrong with this? It's obviously not finished. ^^ But what's wrong with what there is? Many thx.
JASS:
function ToxicGasBuff takes nothing returns nothing
call UnitAddAbility(GetTriggerUnit(), 039;A02N039;)
endfunction
function InitTrig_ToxicGas_Buff takes nothing returns nothing
set udg_Trg_ToxicGasBuff = CreateTrigger()
call TriggerAddAction(udg_Trg_ToxicGasBuff, function ToxicGasBuff)
endfunction
function TrigCond_AddEvent_Trig_ToxicGasBuff takes nothing returns boolean
return(GetUnitTypeId(GetConstructedStructure()) == 039;o00Z039;)
endfunction
function AddEvent_Trig_ToxicGasBuff takes nothing returns nothing
call TriggerRegisterUnitInRangeSimple(udg_Trg_ToxicGasBuff, 220.00, GetConstructedStructure())
endfunction
function InitTrig_AddEvent_Trig_ToxicGasBuff takes nothing returns nothing
set udg_Trg_AddEvent_Trig_ToxicGasBuff = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Trg_AddEvent_Trig_ToxicGasBuff, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH)
call TriggerAddCondition(udg_Trg_AddEvent_Trig_ToxicGasBuff, function TrigCond_AddEvent_Trig_ToxicGasBuff)
//-----
//This is the line that is declared as causing an error (wrong argument type, unknown type)
//-----
call TriggerAddAction(udg_Trg_AddEvent_Trig_ToxicGasBuff, function AddEvent_Trig_ToxicGasBuff)
endfunction
//===========================================================================
function InitTrig_ToxicGasEffect takes nothing returns nothing
set gg_trg_Toxic_Gas = CreateTrigger()
endfunction