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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Crashing Script
JetlinerX Offline
Senior Member

Posts: 599
Threads: 49
Joined: Jun 2011
Reputation: 19
#1
Crashing Script

Hello all!

So far, these are the only types of problems I havent figured out. My game crashes when entering another map, but when whole script is removed, it works. CODE:

void OnStart ()
{
        AddEntityCollideCallback("Player", "HospitalPics", "Pics", true, 1);
        AddEntityCollideCallback("Player", "ScriptArea_1", "Picsmom", true, 1);
        AddEntityCollideCallback("Player", "ScriptArea_2", "Picsassistant", true, 1);
        AddEntityCollideCallback("Player", "ScriptArea_3", "Picsdad", true, 1);
        AddEntityCollideCallback("Player", "DontGo", "DontGo", true, 1);
        AddEntityCollideCallback("Player", "Mom", "Mom", true, 1);
        SetEntityCallbackFunc("note_generic_1", "OnPickup");
}
void Pics(string &in asParent, string &in asChild, int alState)
{        
        SetMessage("Messages", "pics", 0);
        StartPlayerLookAt("paintings_strange03_1", 2.0f, 2.0f, "");
}
void Picsmom(string &in asParent, string &in asChild, int alState)
{        
        SetMessage("Messages", "picsmom", 0);
        StartPlayerLookAt("paintings_strange04_1", 2.0f, 2.0f, "");
}
void Picsassistant(string &in asParent, string &in asChild, int alState)
{        
        SetMessage("Messages", "picsassistant", 0);
        StartPlayerLookAt("paintings_strange03_1", 2.0f, 2.0f, "");
}
void Picsdad(string &in asParent, string &in asChild, int alState)
{        
        SetMessage("Messages", "picsdad", 0);
        StartPlayerLookAt("paintings_strange03_1", 2.0f, 2.0f, "");
}
void Picsdad(string &in asParent, string &in asChild, int alState)
{        
        SetMessage("Messages", "DontGo", 0);
}
void OnPickup(string &in asEntity, string &in type)
{
        SetEntityActive("Mom", true);
}
void Mom(string &in asParent, string &in asChild, int alState)
{    
        SetMessage("Messages", "Mom", 0);
}
void OnLeave ()
{

}

FORGET IT!

SOLVED! Thanks!

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

(This post was last modified: 09-03-2011, 04:52 PM by JetlinerX.)
09-03-2011, 04:09 PM
Website Find




Users browsing this thread: 2 Guest(s)