Hello everybody,
I'm working on a custom story (no name yet ), and I wanted to make a text intro,
but if I use SetMessage it doesn't work... Nothing happens, the map just loads, and you can play,
but no message shows and no sound plays...
(Solved: I forgot one Capital letter )
my code is:
void Intro(string &in asTimer)
{
if(asTimer == "fade_in") {
FadeIn(3);
}
if(asTimer == "intro01") {
SetMessage("Intro_Text", "line01", 13);
}
if(asTimer == "intrsnd") {
PlayGuiSound("enabled01", 2);
}
if(asTimer == "intro02") {
SetMessage("Intro_Text", "line02", 8);
}
if(asTimer == "intro03") {
SetMessage("Intro_Text", "line03", 4);
}
if(asTimer == "intro04") {
SetMessage("Intro_Text", "line04", 6);
}
if(asTimer == "intro05") {
SetMessage("Intro_Text", "line05", 5);
}
}
void OnStart(){
//-- Intro --//
FadeOut(0);
AddTimer("fade_in", 00, "intro");
AddTimer("intro01", 03, "intro");
AddTimer("intrsnd", 16, "intro");
AddTimer("intro02", 20, "intro");
AddTimer("intro03", 29, "intro");
AddTimer("intro04", 34, "intro"); AddTimer("intro05", 41, "intro");
}
Does Anybody know what's wrong, or what I should do?