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


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

Oops. Sorry guys, I must have forgot about it because I was in a rush. And yes, it should be fixed. :p

@Miguli;

It should be this:

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



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

Thanks! Now it's working Smile

(btw: do you know what is annoying when test maps. Must test monsters.)


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

It's not so scary, when you know they're coming.


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

(06-10-2011, 10:58 PM)Finska Wrote: It's not so scary, when you know they're coming.

Don't say that :O. I don't know if it's only me but sometimes when I'm trying the monster out and I'm distracted then the monster appears...damn...I can't play amnesia for a day after that event.


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

Amnesia = F*cking scary.
But again with problems, error comes again and i dont get it what is wrong, help me?

Quote://////////////////////////////////
//Taking letter is making Grunt_1
void OnStart()
{
SetEntityPlayerInteractCallback("note_letter_1", "Func01", true);
}
void Func01(string &in asEntity)
{
SetEntityActive("grunt_1", true);
}
////////////////////////////////////////////////////////////
// Enemy Disapears when player is safearea_1
void OnStart()
{
AddEntityCollideCallback("Player", "safearea_1", "Func02", false, 1);
}
void Func02(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("grunt_1", false);
}

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

}

I tested without void OnStart() but nothing special, only error.

////////////////////////////////////////////////////////////
// Enemy Disapears when player is safearea_1
{
AddEntityCollideCallback("Player", "safearea_1", "Func02", false, 1);
}
void Func02(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("grunt_1", false);
}


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

Oh, I like to play with monsters. When you see them often enough, they will be nice guys Smile I like teasing them and throwing 'em with the boxes and going to ninja-mode


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

dude...Big Grin
add me on steam or msn so I can teach some basics about the scripting parts ^^

msn: mattias_dionysus@hotmail.com
steam: xuxz0r


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

@Miguli;

You CAN'T have two void onstarts! Sad

Try merging them by putting both of them in the same void onstart.


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

(06-10-2011, 11:07 PM)Finska Wrote: Oh, I like to play with monsters. When you see them often enough, they will be nice guys Smile I like teasing them and throwing 'em with the boxes and going to ninja-mode

haha yea sometimes ^^. I remember...I guess it's at "study" or something but when you need to break a door open with a crowbar then a monster appears. I find it funny to block the door with alot of props and then stand behind 'em so the monster gets mad and can't hit me XD. But the sad part is when he actually destroys the barricade and kill me...that's the shit my pants part Sad


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

Xtron: I put you to my Msn, i dont play in steam for while now. (Becaus this computer is shitty and i dont wanna see Loaders. :I)

Kyle: Ummm..... with { } tags or something? yeah... i am with scripts VERY VERY bad, loser, something Sad

E: i can't go msn now becaus it's offline for while. :I