I think this is where i post errors and stuff
So...here is the problem...
My player looks at a statue...wich i want him to...but i also want text to apear when that occurs...
What do i need to add?...Also the sound is not working..why...
That makes 2 Problems...
1. I want to make text apear
2. The sound to start when player is looking
Can you help me out?
Here's my script...
PlayMusic("Scary.ogg", true, 0.9, 1.0, 1, true);
AddEntityCollideCallback("Player", "lookarea1", "look", true, 1);
}
void look(string &in asParent, string &in asChild, int alState)
{
SetPlayerActive(false);
StartPlayerLookAt("stephano_1", 3.0f, 5.0f, "");
AddTimer("timer01", 2.5f, "StopLook");
PlaySoundAtEntity("", "Letsgetthem.snt", "Player", 0, false);
}
void StopLook(string &in asTimer)
{
StopPlayerLookAt();
SetPlayerActive(true);
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
StopMusic(1 , 1);
}