-- LUA Script - precede every function and global member with lowercase name of script + '_main' -- Player Enters Music Zone -- Define flags to communicate with the RPG scripts FLAG_MUSIC = 1 IsPlayer = {} function etc_musicplayer_init(e) IsPlayer[e] = 1 end function etc_musicplayer_main(e) if g_Entity[e]['plrinzone']==1 then LoopSound(e,0) ActivateIfUsed(e) end end