Frictional Games Forum (read-only)
DOOR PROBLEM.. >:o - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: DOOR PROBLEM.. >:o (/thread-13104.html)

Pages: 1 2 3


RE: DOOR PROBLEM.. >:o - MicroDude - 02-04-2012

its an old habit. But okay i shall try now
Wait all you did was to remove spacing ?


RE: DOOR PROBLEM.. >:o - Elven - 02-04-2012

yes.

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

}

It has to look like:

void OnStart()
{
// SHIT HERE
}



RE: DOOR PROBLEM.. >:o - MicroDude - 02-04-2012

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);
}


RE: DOOR PROBLEM.. >:o - Elven - 02-04-2012

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)





RE: DOOR PROBLEM.. >:o - MicroDude - 02-04-2012

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"


RE: DOOR PROBLEM.. >:o - Elven - 02-04-2012

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



RE: DOOR PROBLEM.. >:o - MicroDude - 02-04-2012

Okay so u want, the ..

.hps file
.map file

Those ?


RE: DOOR PROBLEM.. >:o - Elven - 02-04-2012

yes, those 2



RE: DOOR PROBLEM.. >:o - MicroDude - 02-04-2012

About the light dont worry ill fix that this is just rough creating of the level Smile


RE: DOOR PROBLEM.. >:o - Elven - 02-04-2012

Problem is simple.

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