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
Need help, again :P
Zaapeer Offline
Junior Member

Posts: 32
Threads: 9
Joined: Dec 2011
Reputation: 0
#1
Need help, again :P

I have another problem... In one part of my cs, you are supposed to put coal in a furnace and then pull a lever to make a machine start working. I made it so that when you pull the lever it creates a particle system (steam) and also the sound for the steam. But if you pull the lever again, it creates more steam and more sound, wich is not supposed to happen. How do I fix this? And also, I made a jump scare, and made it so that when it happens the sound of the player reacting scared is supposed to play, but it doesn't...
Here's the script for the jump scare:


void OnStart()
{
AddEntityCollideCallback("Player", "GhostArea", "GhostFunc", true, 1);
}


void GhostFunc(string &in asParent, string &in asChild, int alState)
{
AddPropForce("vase01_1", 0, 0, -2000, "world");
StartPlayerLookAt("vase01_1", 5, 10, "");
AddTimer("StopLookTimer1", 0.2f, "StopLookFunc1");
PlaySoundAtEntity("", "react_scare.snt", "player", 0.1f, true);
}

void StopLookFunc1(string &in asTimer)
{
StopPlayerLookAt();
}

Does someone know how to fix this? [Image: confused.gif]
10-25-2012, 03:08 PM
Find


Messages In This Thread
Need help, again :P - by Zaapeer - 10-25-2012, 03:08 PM
RE: Need help, again :P - by The chaser - 10-25-2012, 03:12 PM
RE: Need help, again :P - by Zaapeer - 10-25-2012, 03:29 PM
RE: Need help, again :P - by The chaser - 10-25-2012, 04:27 PM
RE: Need help, again :P - by ZodiaC - 10-25-2012, 06:48 PM
RE: Need help, again :P - by The chaser - 10-25-2012, 08:23 PM
RE: Need help, again :P - by ZodiaC - 10-25-2012, 08:51 PM
RE: Need help, again :P - by The chaser - 10-25-2012, 09:27 PM
RE: Need help, again :P - by ZodiaC - 10-25-2012, 10:17 PM
RE: Need help, again :P - by FlawlessHappiness - 10-25-2012, 10:49 PM
RE: Need help, again :P - by ZodiaC - 10-25-2012, 11:21 PM
RE: Need help, again :P - by The chaser - 10-26-2012, 06:44 AM
RE: Need help, again :P - by FlawlessHappiness - 10-26-2012, 07:01 AM
RE: Need help, again :P - by The chaser - 10-26-2012, 09:45 AM
RE: Need help, again :P - by FlawlessHappiness - 10-26-2012, 10:59 AM
RE: Need help, again :P - by Melvin - 10-26-2012, 11:13 AM
RE: Need help, again :P - by The chaser - 10-26-2012, 11:25 AM
RE: Need help, again :P - by ZodiaC - 10-26-2012, 01:25 PM
RE: Need help, again :P - by The chaser - 10-26-2012, 02:00 PM
RE: Need help, again :P - by ZodiaC - 10-26-2012, 02:32 PM
RE: Need help, again :P - by The chaser - 10-26-2012, 04:41 PM
RE: Need help, again :P - by Zaapeer - 10-27-2012, 12:17 AM
RE: Need help, again :P - by The chaser - 10-27-2012, 08:24 PM



Users browsing this thread: 1 Guest(s)