MicroDude
Junior Member
Posts: 11
Threads: 1
Joined: Feb 2012
Reputation:
0
|
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 |
|
Elven
Posting Freak
Posts: 862
Threads: 37
Joined: Aug 2011
Reputation:
26
|
RE: DOOR PROBLEM.. >:o
yes.
void OnStart()
-------------- REMOVE THAT PART -------------------
{
}
It has to look like:
void OnStart()
{
// SHIT HERE
}
|
|
02-04-2012, 11:17 PM |
|
MicroDude
Junior Member
Posts: 11
Threads: 1
Joined: Feb 2012
Reputation:
0
|
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 |
|
Elven
Posting Freak
Posts: 862
Threads: 37
Joined: Aug 2011
Reputation:
26
|
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)
(This post was last modified: 02-04-2012, 11:24 PM by Elven.)
|
|
02-04-2012, 11:23 PM |
|
MicroDude
Junior Member
Posts: 11
Threads: 1
Joined: Feb 2012
Reputation:
0
|
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
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 |
|
Elven
Posting Freak
Posts: 862
Threads: 37
Joined: Aug 2011
Reputation:
26
|
RE: DOOR PROBLEM.. >:o
can u maybe pm me map and file so I can test it out myself?
|
|
02-04-2012, 11:31 PM |
|
MicroDude
Junior Member
Posts: 11
Threads: 1
Joined: Feb 2012
Reputation:
0
|
RE: DOOR PROBLEM.. >:o
Okay so u want, the ..
.hps file
.map file
Those ?
|
|
02-04-2012, 11:39 PM |
|
Elven
Posting Freak
Posts: 862
Threads: 37
Joined: Aug 2011
Reputation:
26
|
RE: DOOR PROBLEM.. >:o
yes, those 2
|
|
02-04-2012, 11:40 PM |
|
MicroDude
Junior Member
Posts: 11
Threads: 1
Joined: Feb 2012
Reputation:
0
|
RE: DOOR PROBLEM.. >:o
About the light dont worry ill fix that this is just rough creating of the level
|
|
02-04-2012, 11:44 PM |
|
Elven
Posting Freak
Posts: 862
Threads: 37
Joined: Aug 2011
Reputation:
26
|
RE: DOOR PROBLEM.. >:o
Problem is simple.
Your hps file and map file doesn't have same name
|
|
02-04-2012, 11:51 PM |
|
|