JetlinerX
Senior Member
Posts: 599
Threads: 49
Joined: Jun 2011
Reputation:
19
|
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!
(This post was last modified: 09-03-2011, 04:52 PM by JetlinerX.)
|
|