The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding text to PlayerLookAt
danimora2012 Offline
Junior Member

Posts: 47
Threads: 18
Joined: Apr 2012
Reputation: 0
#1
Shocked  Adding text to PlayerLookAt

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? Blush

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);
}
(This post was last modified: 09-19-2012, 11:06 PM by danimora2012.)
09-16-2012, 09:24 PM
Find


Messages In This Thread
Adding text to PlayerLookAt - by danimora2012 - 09-16-2012, 09:24 PM
RE: Adding text to PlayerLookAt - by danimora2012 - 09-16-2012, 09:43 PM
RE: Adding text to PlayerLookAt - by i3670 - 09-17-2012, 09:29 AM



Users browsing this thread: 1 Guest(s)