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.
mattman111 Offline
Junior Member

Posts: 3
Threads: 1
Joined: Apr 2012
Reputation: 0
#5
RE: Help with script.

(04-22-2012, 05:13 PM)JetlinerX Wrote: 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)
worked thanks <3

04-22-2012, 05:19 PM
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)