Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Gametee


Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
hmm game crashes.
Author Message
Itskody Offline
Member

Posts: 100
Joined: Mar 2011
Reputation: 1
Post: #1
hmm game crashes.

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: (Select All)
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?
04-17-2011 05:54 PM
Find all posts by this user Quote this message in a reply
Dalroc Offline
Member

Posts: 57
Joined: Mar 2011
Reputation: 0
Post: #2
RE: hmm game crashes.

PHP Code: (Select All)
void OnStart()
{
    
SetEntityPlayerInteractCallback("key_study_1""Monter"true);

PHP Code: (Select All)
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
04-17-2011 07:22 PM
Find all posts by this user Quote this message in a reply
Linus Ă…gren Offline
Senior Member

Posts: 309
Joined: Jan 2011
Reputation: 5
Post: #3
RE: hmm game crashes.

AddTimer("". 1.0f, "Move");
You have a . instead of a , Smile

Creator of The Dark Treasure.
04-17-2011 07:58 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Itskody Offline
Member

Posts: 100
Joined: Mar 2011
Reputation: 1
Post: #4
RE: hmm game crashes.

wow haha thanks guys, i looked over it so much but somhow missed those.
04-17-2011 08:00 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)