dannyboydude
Ultra Cool Member
- Reaction score
- 33
well i was reading a tut about structs
so i copied this but i cannot understand how to use structs , and the structname.create is sopposed to b brown but its jsut white like normal heres a screen shot
so i copied this but i cannot understand how to use structs , and the structname.create is sopposed to b brown but its jsut white like normal heres a screen shot
JASS:
struct structname
unit caster
endstruct
function funcname takes nothing returns nothing
local structname data = structname.create()
set data.caster = GetTriggerUnit()
endfunction
//===========================================================================
function InitTrig_Struct takes nothing returns nothing
set gg_trg_Struct = CreateTrigger( )
call TriggerAddAction( gg_trg_Struct, function funcname )
endfunction