Frictional Games Forum (read-only)
4* Questions and Questions are in comic :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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: 4* Questions and Questions are in comic :O (/thread-8523.html)

Pages: 1 2 3 4


4* Questions and Questions are in comic :O - miguli - 06-10-2011

So, you wanna read with funny moments:

Wait i have 4 Questions*
http://img143.imageshack.us/img143/9408/mappingquestions.png

[Image: mappingquestions.png]

Now with text:
1. How to use PathNodes?
2. How to make that when grap item enemy spawn's?
3. How to make Ladders working?
4. How to make if you are example in closet, enemy disapears?

LOT OF THANKS FOR HELPPERS!!1 i really need how to make those, beeeeecaus in my maps i need those all Dodgy

-Miguli
(is anybody used Custom Story name Hope?)


RE: 4* Questions and Questions are in comic :O - Kyle - 06-10-2011

PathNodes: http://www.frictionalgames.com/forum/thread-7776.html?highlight=Path+Nodes

Ladders: http://www.frictionalgames.com/forum/thread-7219.html?highlight=Ladders

Player Grabs object and then monster spawns:

Code:
void OnStart()
{
     SetEntityCollideCallback("ItemName", "Func01", true);
}
void Func01(string &in asEntity)
{
     SetEntityActive("MonsterName", true);
}

Here is next script about player going inside a closet and then sets the monster inactive:

Put an area in the closet and lets call it ScriptArea_1 for now.

Code:
void OnStart()
{
     AddEntityCollideCallback("Player", "ScriptArea_1", "Func01", false, 1);
}
void Func01(string &in asParent, string &in asChild, int alState)
{
     SetEntityActive("MonsterName");
}

Make sure you plug in all the things for it.


RE: 4* Questions and Questions are in comic :O - xtron - 06-10-2011

but...now the monster gets activated? shouldn't it get DEactivated?.


RE: 4* Questions and Questions are in comic :O - Russ Money - 06-10-2011

To deactivate the monster is the same way of activating him, but the opposite.

SetEntityActive("MonsterName", true);

Would become

SetEntityActive("MonsterName", false);


RE: 4* Questions and Questions are in comic :O - xtron - 06-10-2011

oh right but in kyles code it there's no True or False.


RE: 4* Questions and Questions are in comic :O - Wonderbread - 06-10-2011

When a monster reaches the end of its specified path nodes it automatically deactivates.


RE: 4* Questions and Questions are in comic :O - miguli - 06-10-2011

Umm....
Still i has problem with that 1 and 3 questions. Beecaus i tried that PathNode thing, it didint work it comes just errors.

(i'm not so good at english ^^')
So has someone pathNode tutorial as video?

Thanks for Helppers!!!1


RE: 4* Questions and Questions are in comic :O - miguli - 06-10-2011

Kyle's grapping item enemy spawns thing dosent work with me Sad


RE: 4* Questions and Questions are in comic :O - xtron - 06-10-2011

can you please post your current code?


RE: 4* Questions and Questions are in comic :O - miguli - 06-10-2011

Quote:void OnStart()
{
SetEntityCollideCallback("note_letter_1", "Func01", true);
}
void Func01(string &in asEntity)
{
SetEntityActive("grunt_1", true);
}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}