Difference between revisions of "Loading Level Resources With Lua"

Jump to navigation Jump to search
m
(Created page. Have tested Trigger/Clump loading quite a bit, everything else is just educated guesses)
 
Line 60: Line 60:
ResolveTriggerNames( game:eventBarn(), game:clumpBarn() )
ResolveTriggerNames( game:eventBarn(), game:clumpBarn() )


--run this to demonstrate that they work, on the same frame you create the triggers: see below for why it's done on same frame
-- these activations aren't necessary to load the triggers, just done on the same frame to demonstrate that they work; see below for why it's done on same frame
 
ActivateTriggerByName( "TextTrigger" )
ActivateTriggerByName( "TextTrigger" )
ActivateTriggerByName( "AnimTrigger" )
ActivateTriggerByName( "AnimTrigger" )
</code>
</code>

Navigation menu