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
MicroDude Offline
Junior Member

Posts: 11
Threads: 1
Joined: Feb 2012
Reputation: 0
#11
RE: DOOR PROBLEM.. >:o

its an old habit. But okay i shall try now
Wait all you did was to remove spacing ?
(This post was last modified: 02-04-2012, 11:16 PM by MicroDude.)
02-04-2012, 11:14 PM
Find
Elven Offline
Posting Freak

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

yes.

void OnStart()
-------------- REMOVE THAT PART -------------------
{

}

It has to look like:

void OnStart()
{
// SHIT HERE
}

The Interrogation
Chapter 1

My tutorials
02-04-2012, 11:17 PM
Find
MicroDude Offline
Junior Member

Posts: 11
Threads: 1
Joined: Feb 2012
Reputation: 0
#13
RE: DOOR PROBLEM.. >:o

Okay so i cleaned up and un-did all my old habits by trying to clean up things..


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);
}
02-04-2012, 11:21 PM
Find
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
MicroDude Offline
Junior Member

Posts: 11
Threads: 1
Joined: Feb 2012
Reputation: 0
#15
RE: DOOR PROBLEM.. >:o

Hmm, after all that i tried my version. Then i tried your's and it still wont close.

Maybe this will help
[Image: 3rdattemptlullululu.png]

IS IT CORRECT LANGUAGE ?? .. That also confuses me
Adding one more thing, is the placing correct. And can i have spacing in the name ? (This one being "A Gentlemans Dream"
(This post was last modified: 02-04-2012, 11:30 PM by MicroDude.)
02-04-2012, 11:29 PM
Find
Elven Offline
Posting Freak

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

can u maybe pm me map and file so I can test it out myself?

The Interrogation
Chapter 1

My tutorials
02-04-2012, 11:31 PM
Find
MicroDude Offline
Junior Member

Posts: 11
Threads: 1
Joined: Feb 2012
Reputation: 0
#17
RE: DOOR PROBLEM.. >:o

Okay so u want, the ..

.hps file
.map file

Those ?
02-04-2012, 11:39 PM
Find
Elven Offline
Posting Freak

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

yes, those 2

The Interrogation
Chapter 1

My tutorials
02-04-2012, 11:40 PM
Find
MicroDude Offline
Junior Member

Posts: 11
Threads: 1
Joined: Feb 2012
Reputation: 0
#19
RE: DOOR PROBLEM.. >:o

About the light dont worry ill fix that this is just rough creating of the level Smile
02-04-2012, 11:44 PM
Find
Elven Offline
Posting Freak

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

Problem is simple.

Your hps file and map file doesn't have same name Smile

The Interrogation
Chapter 1

My tutorials
02-04-2012, 11:51 PM
Find




Users browsing this thread: 1 Guest(s)