09-17-2011, 02:35 PM
Hello.
I have a problem with my script.
Well its not really a problem, Everything works fine, But When i enter my script-area In-Game a hand pops up on the screen. Like a hand pops up like if i was able to grab the script and throw it away. Which makes my story a bit boring, cause your always prepared when a script is about to become active.
If you did not understand what i just wrote, please check out the picture i´ve added.
Thanks for reading this, Please post a solution if you know whats wrong.
Heres my script:
////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "lantern", "lanterns", true, 1); (The script starts here))
AddTimer("FadeIn", 21.0, "FadeIn");
AddTimer("tmrIntro", 10.5f, "IntroMessage2");
AddTimer("tmrIntro", 21.0f, "IntroMessage3");
FadeOut(0.0f);
SetMessage("Messages", "intro1", 10.0f);
}
void IntroMessage2(string &in asTimer)
{
SetMessage("Messages", "intro2", 10.0f);
}
void IntroMessage3(string &in asTimer)
{
SetMessage("Messages", "intro3", 10.0f);
}
void FadeIn(string &in asTimer)
{
FadeIn(3.0f);
}
void lanterns(string &in asParent, string &in asChild, int alState) (The Script continues here)
{
SetMessage("Messages", "lanterns", 7.0f);
} (The script ends here)
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
I have a problem with my script.
Well its not really a problem, Everything works fine, But When i enter my script-area In-Game a hand pops up on the screen. Like a hand pops up like if i was able to grab the script and throw it away. Which makes my story a bit boring, cause your always prepared when a script is about to become active.
If you did not understand what i just wrote, please check out the picture i´ve added.
Thanks for reading this, Please post a solution if you know whats wrong.
Heres my script:
////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "lantern", "lanterns", true, 1); (The script starts here))
AddTimer("FadeIn", 21.0, "FadeIn");
AddTimer("tmrIntro", 10.5f, "IntroMessage2");
AddTimer("tmrIntro", 21.0f, "IntroMessage3");
FadeOut(0.0f);
SetMessage("Messages", "intro1", 10.0f);
}
void IntroMessage2(string &in asTimer)
{
SetMessage("Messages", "intro2", 10.0f);
}
void IntroMessage3(string &in asTimer)
{
SetMessage("Messages", "intro3", 10.0f);
}
void FadeIn(string &in asTimer)
{
FadeIn(3.0f);
}
void lanterns(string &in asParent, string &in asChild, int alState) (The Script continues here)
{
SetMessage("Messages", "lanterns", 7.0f);
} (The script ends here)
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}