Frictional Games Forum (read-only)

Full Version: hmm game crashes.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
usually when my game crashes while testing my custom story, it tells me whats wrong with my script. But nowwww it just says it has stopped working. i looked at my script and what i added before it crashed, and i cant find what the problem is. here is what i added:
PHP Code:
void OnStart()
{
    
SetEntityPlayerInteractCallback("key_study_1""Monter"true);
}

void Monster(string &in entity)
{
    
StartPlayerLookAt("servant_grunt_2"1020"");
    
SetPlayerCrouching(true);
    
SetPlayerActive(false);
    
FadeIn(3.0f);
    
AddTimer(""3.0f"Dissapear");
    
GiveSanityDamage(10.0ftrue);
    
PlaySoundAtEntity("""react_breath_slow.snt""Player"0false);
}

void Dissapear(string &in asTimer)
{
    
SetEntityActive("servant_grunt_2"false);
    
FadeOut(1.0f);
    
AddTimer(""1.0f"Move");
}

void Move(string &in asTimer)
{
    
SetPlayerCrouching(false);
    
SetPlayerActive(true);
    
StopPlayerLookAt();


Can you find anything?
PHP Code:
void OnStart()
{
    
SetEntityPlayerInteractCallback("key_study_1""Monter"true);

PHP Code:
void Monster(string &in entity)
{
    
StartPlayerLookAt("servant_grunt_2"1020"");
    
SetPlayerCrouching(true);
    
SetPlayerActive(false);
    
FadeIn(3.0f);
    
AddTimer(""3.0f"Dissapear");
    
GiveSanityDamage(10.0ftrue);
    
PlaySoundAtEntity("""react_breath_slow.snt""Player"0false);


You're calling the function "Monter", not "Monster" Smile
Code:
AddTimer("". 1.0f, "Move");
You have a . instead of a , Smile
wow haha thanks guys, i looked over it so much but somhow missed those.