Hi Mnemonic I've a scene_init.script like that
#include "scripts\base.inc"
// here comes the stuff which initializes the scene
this.PlaySoundEvent("music\intro\intro.ogg", "soundOver");
////////////////////////////////////////////////////////////////////////////////
on "soundOver"
{
Game.Msg("On event");
}
////////////////////////////////////////////////////////////////////////////////
// scene state
global Stateintro;
// default values
if(Stateintro==null)
{
Stateintro.Visited = false;
// add scene states here
}
////////////////////////////////////////////////////////////////////////////////
// setup scene according to state variables
////////////////////////////////////////////////////////////////////////////////
if(!Stateintro.Visited)
{
Stateintro.Visited = true;
// this is our first visit in this scene...
}
but when the game run, on that scene I can hear the sound but I can't see the message. Even if I set a breakpoint on the Game.Msg line the game doesn't stop on it.