-- LUA Script - precede every function and global member with lowercase name of script + '_main' -- Player Enters Story Zone g_storyinzone_mode = {} function storyinzone_init( e ) g_storyinzone_mode[ e ] = 0 LoadGlobalSound ( "audiobank\\slaur3n\\SantaClausIntro.wav", 1 ) end g_HideXmasHud = g_HideXmasHud or true function storyinzone_main( e ) if g_Entity[e]['plrinzone']==1 then if g_storyinzone_mode[ e ] ~= nil then if g_storyinzone_mode[ e ] == 0 then g_storyinzone_mode[ e ] = 1 HideHuds() if radar_hideallsprites ~= nil then radar_hideallsprites() end else if g_storyinzone_mode[ e ] == 1 then PlayGlobalSound ( 1 ) SetGlobalSoundSpeed ( 1, 40000 ) PlayVideo( e, 1 ) g_storyinzone_mode[e] = 2 else if g_storyinzone_mode[ e ] == 2 then if radar_showallsprites ~= nil then radar_showallsprites() end ShowHuds() Destroy( e ) StopGlobalSound( 1 ) DeleteGlobalSound( 1 ) ActivateIfUsed( e ) g_storyinzone_mode[ e ] = 3 g_HideXmasHud = false end end end end end end