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
More Newbie problems..
The Shanus Offline
Member

Posts: 134
Threads: 15
Joined: Jun 2012
Reputation: 3
#1
Question  More Newbie problems..

Hey guys, two questions this time. Firstly, my hallucinations are no longer working. I tick the hallucination box, and set the disappearing distance to 0.5, yet they dont disappear, and inevitable kill the player. My first hallucination worked fine, but my second did not, and from then on, I might as well have left the box unticked. I'm sure there's something simple I've overlooked once again, but I can't spot it.. Any ideas?

Secondly, I'm curious to know how to get a sound to work as a monster spawns.
At the moment I'm getting "FATAL ERROR - No matching signatures for the PlaySoundAtEntity bladiblah part of the script".

Here's my script -
PHP Code: (Select All)
void OnStart()
{
}

////////////////////////////
// Run when entering map

void OnEnter()
{
AddUseItemCallback("""room101key""room101""UsedKeyOnDoor"true);
AddUseItemCallback("""room100key""room100""UsedKeyOnDoor"true);
SetEntityCallbackFunc("room100key""OnPickup");
AddUseItemCallback("""hatch101key""hatch101""UsedKeyOnDoor"true);
}

void UsedKeyOnDoor(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity(""asEntity"room101"0false);
PlaySoundAtEntity(""asEntity"room100"0false);
PlaySoundAtEntity(""asEntity"hatch101"0false);
RemoveItem(asItem);
}

void OnPickup(string &in asEntitystring &in type)
{
  
SetEntityActive("poofer1"true);
  
ShowEnemyPlayerPosition("poofer");
  
PlaySoundAtEntity("monsterappear1""04_break.snt""poofer1"""0false);


I would like the sound to come on as the monster spawns, once the key is picked up. So as to scare/alert the player.

Thanks alot.

[Image: theshanusyoutube.jpg]
(This post was last modified: 06-19-2012, 05:34 PM by The Shanus.)
06-19-2012, 03:01 PM
Find


Messages In This Thread
More Newbie problems.. - by The Shanus - 06-19-2012, 03:01 PM
RE: More Newbie problems.. - by Datguy5 - 06-19-2012, 03:15 PM
RE: More Newbie problems.. - by Obliviator27 - 06-19-2012, 03:22 PM
RE: More Newbie problems.. - by The Shanus - 06-19-2012, 03:25 PM
RE: More Newbie problems.. - by Cruzore - 06-19-2012, 03:27 PM
RE: More Newbie problems.. - by The Shanus - 06-19-2012, 03:29 PM
RE: More Newbie problems.. - by Stepper321 - 06-19-2012, 06:18 PM
RE: More Newbie problems.. - by The Shanus - 06-19-2012, 07:24 PM



Users browsing this thread: 1 Guest(s)