07-04-2011, 07:00 PM
Someone can tell me what is wrong please?
The game Starts but when i catch the key nothing happens.
Code:
void OnStart()
{
SetEntityPlayerInteractCallback("key_2", "room", false);
}
void room(string &in asParent, string &in asChild, int alstate)
{
GiveSanityDamage(20, true);
SetEntityActive("insanity1" , true);
SetEntityActive("insanity2" , true);
SetEntityActive("insanity3" , true);
SetEntityActive("insanity4" , true);
SetEntityActive("insanity5" , true);
}
The game Starts but when i catch the key nothing happens.