-- 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 musicinzone_init(e) IsPlayer[e] = 1 end function musicinzone_main(e) if g_Entity[e]['plrinzone']==1 then LoopSound(e,0) ActivateIfUsed(e) else StopSound(e,0) end end