- Joined
- Jul 3, 2011
- Messages
- 251
Hey guys, can someone please explain to me why we put things other than the event conditions and sometimes actions in the init trig? I understand why we do things like
But why do we sometimes do things like
I know to use that line, but i dont actually know what it does, nor do i know why it must be in the init trig.
So to anyone who knows JASS, why do we use the init trig, what can we use it for and why do we use this trig for it? Thanks.
JASS:
local trigger t = CreateTrigger( )
// event/con/action here
set t = null
But why do we sometimes do things like
JASS:
local trigger t = CreateTrigger( )
// event/con/action here
set udg_hash = InitHashtable()
set t = null
I know to use that line, but i dont actually know what it does, nor do i know why it must be in the init trig.
So to anyone who knows JASS, why do we use the init trig, what can we use it for and why do we use this trig for it? Thanks.