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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DOOR PROBLEM.. >:o
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#14
RE: DOOR PROBLEM.. >:o

Wait wait... U did too much. There can be spacing after }...

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea1", "func_slam", true, 1);
}

void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("door1", true, true);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
}


Is okay, but you cannot have just one empty line AFTER the condition, that means conditions like:
void OnStart() and void func_slam(string &in asParent, string &in asChild, int alState)



The Interrogation
Chapter 1

My tutorials
(This post was last modified: 02-04-2012, 11:24 PM by Elven.)
02-04-2012, 11:23 PM
Find


Messages In This Thread
DOOR PROBLEM.. >:o - by MicroDude - 02-04-2012, 10:16 PM
RE: DOOR PROBLEM.. >:o - by Elven - 02-04-2012, 10:38 PM
RE: DOOR PROBLEM.. >:o - by MicroDude - 02-04-2012, 10:42 PM
RE: DOOR PROBLEM.. >:o - by Elven - 02-04-2012, 10:48 PM
RE: DOOR PROBLEM.. >:o - by MicroDude - 02-04-2012, 10:51 PM
RE: DOOR PROBLEM.. >:o - by Elven - 02-04-2012, 10:58 PM
RE: DOOR PROBLEM.. >:o - by MicroDude - 02-04-2012, 11:00 PM
RE: DOOR PROBLEM.. >:o - by Elven - 02-04-2012, 11:02 PM
RE: DOOR PROBLEM.. >:o - by MicroDude - 02-04-2012, 11:05 PM
RE: DOOR PROBLEM.. >:o - by Elven - 02-04-2012, 11:10 PM
RE: DOOR PROBLEM.. >:o - by RawkBandMan - 02-05-2012, 02:05 AM
RE: DOOR PROBLEM.. >:o - by MicroDude - 02-04-2012, 11:14 PM
RE: DOOR PROBLEM.. >:o - by Elven - 02-04-2012, 11:17 PM
RE: DOOR PROBLEM.. >:o - by MicroDude - 02-04-2012, 11:21 PM
RE: DOOR PROBLEM.. >:o - by Elven - 02-04-2012, 11:23 PM
RE: DOOR PROBLEM.. >:o - by MicroDude - 02-04-2012, 11:29 PM
RE: DOOR PROBLEM.. >:o - by Elven - 02-04-2012, 11:31 PM
RE: DOOR PROBLEM.. >:o - by MicroDude - 02-04-2012, 11:39 PM
RE: DOOR PROBLEM.. >:o - by Elven - 02-04-2012, 11:40 PM
RE: DOOR PROBLEM.. >:o - by MicroDude - 02-04-2012, 11:44 PM
RE: DOOR PROBLEM.. >:o - by Elven - 02-04-2012, 11:51 PM
RE: DOOR PROBLEM.. >:o - by MicroDude - 02-04-2012, 11:56 PM



Users browsing this thread: 1 Guest(s)