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 with scripting
Cakefirst Offline
Junior Member

Posts: 8
Threads: 1
Joined: Jan 2011
Reputation: 0
#12
RE: Need help with scripting

Ok, I thought I had got a working script for making the leak stop by turning the wheel but all I managed was to stop the sound when turning it, the particle wont disappear, I still dont find any way to do it. Also I have put out a statue more specifically called deformed_man. What I am trying to do is find a way so when you see it your screen will shake breafly and you hear your breath and sanity goes up as you go scared. I think I got it figured out how the sound will work but I have no clue of how to make character screen shake and sanity goes up and combine it with this prop? Any help appreciated

This is what I got for my leak, it only stops the sound

void LeakValve(string &in EntityName, int alState)
{
if (alState == 1) {
if(GetLocalVarInt("LeakDone") == 0) {
SetLocalVarInt("LeakDone", 1);
for (int i = 0; i < 26; i++) {
DestroyParticleSystem("leak"+i);
}
StopSound("leak_sound1", 2);
SetLocalVarInt("isLeakOn", 0);
GiveSanityBoost();
(This post was last modified: 01-13-2011, 10:01 PM by Cakefirst.)
01-13-2011, 09:46 PM
Find


Messages In This Thread
Need help with scripting - by Cakefirst - 01-11-2011, 06:17 PM
RE: Need help with scripting - by Frontcannon - 01-11-2011, 06:33 PM
RE: Need help with scripting - by Cakefirst - 01-11-2011, 06:47 PM
RE: Need help with scripting - by Tottel - 01-11-2011, 07:02 PM
RE: Need help with scripting - by Cakefirst - 01-11-2011, 07:36 PM
RE: Need help with scripting - by Cakefirst - 01-12-2011, 03:24 PM
RE: Need help with scripting - by Seragath - 01-12-2011, 03:34 PM
RE: Need help with scripting - by Cakefirst - 01-12-2011, 03:45 PM
RE: Need help with scripting - by Seragath - 01-12-2011, 04:10 PM
RE: Need help with scripting - by Frontcannon - 01-12-2011, 05:20 PM
RE: Need help with scripting - by Cakefirst - 01-12-2011, 06:11 PM
RE: Need help with scripting - by Cakefirst - 01-13-2011, 09:46 PM
RE: Need help with scripting - by Seragath - 01-14-2011, 08:38 PM
RE: Need help with scripting - by Frontcannon - 01-13-2011, 10:16 PM
RE: Need help with scripting - by Tottel - 01-13-2011, 10:33 PM
RE: Need help with scripting - by Cakefirst - 01-14-2011, 10:05 PM



Users browsing this thread: 1 Guest(s)