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
Help with script.
JetlinerX Offline
Senior Member

Posts: 599
Threads: 49
Joined: Jun 2011
Reputation: 19
#4
RE: Help with script.

Your collide callback syntax is wrong, try this:

void OnStart()
{
PlayMusic("ambience_swoop_myst.ogg", true, 0.8f, 1, 0, true);
AddEntityCollideCallback("Player", "Pop1Area", "Pop1Func", true, 1);
SetEntityCallbackFunc("Pop1Door", "Pop1DoorBreakFunc");
}

void Pop1DoorBreakFunc(string &in asParent, string &in asChild, int alState)
{
SetEnemyIsHallucination("Pop1Brute", true);
}

void Pop1Func(string &in asParent, string &in asChild, int alState)
{
SetNPCAwake("Pop1Brute", true, true);
ShowEnemyPlayerPosition("Pop1Brute");
}

This was your problem:
void Pop1DoorBreakFunc(string &in asEntity, string &in type)

Changed to:

void Pop1DoorBreakFunc(string &in asParent, string &in asChild, int alState)

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

(This post was last modified: 04-22-2012, 05:16 PM by JetlinerX.)
04-22-2012, 05:13 PM
Website Find


Messages In This Thread
Help with script. - by mattman111 - 04-22-2012, 04:48 PM
RE: Help with script. - by Cranky Old Man - 04-22-2012, 04:56 PM
RE: Help with script. - by mattman111 - 04-22-2012, 05:08 PM
RE: Help with script. - by JetlinerX - 04-22-2012, 05:13 PM
RE: Help with script. - by mattman111 - 04-22-2012, 05:19 PM
RE: Help with script. - by JetlinerX - 04-22-2012, 05:39 PM



Users browsing this thread: 1 Guest(s)