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
script error
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#4
RE: script error

You can't make functions out of nothing, there must be the type, name, and parameters for each one. The AddEntityCollideCallback is supposed to be in the "void OnStart()" function.

void OnStart()
{
     AddEntityCollideCallback("Player", "ScriptArea_1", "BuchErscheinung", true, 1);
     AddEntityCollideCallback("Player", "DoorClosedArea_1", "DoorClosedAndLook", true, 1);
}
void BuchErscheinung(string &in asParent, string &in asChild, int alState)
{
     SetEntityActive("buch", true);
     AddDebugMessage("buch", false);
}
void DoorClosedAndLook(string &in asParent, string &in asChild, int alState)
{
     SetSwingDoorClosed("mansion_6", true, true);
     StartPlayerLookAt("mansion_6", 10.0f, 10.0f, "");
     AddTimer("", 1.0f, "stoplook");
}
void stoplook(string &in asTimer)
{
     StopPlayerLookAt();
}
void OnEnter()
{
}
void OnLeave()
{
}

07-31-2011, 09:39 PM
Find


Messages In This Thread
script error - by mr.bonent - 07-31-2011, 06:20 PM
RE: script error - by palistov - 07-31-2011, 06:59 PM
RE: script error - by mr.bonent - 07-31-2011, 09:22 PM
RE: script error - by Kyle - 07-31-2011, 09:39 PM
RE: script error - by mr.bonent - 07-31-2011, 09:53 PM



Users browsing this thread: 1 Guest(s)