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
Scripting problem
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Scripting problem

void OnEnter()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "activatemonster1", true, 1);
}

void activatemonster1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("manhunter_1", true);
AddTimer("", RandFloat(5.0f, 20.0), "deactivatemonster1");
}

void deactivatemonster1(string &in asTimer)
{
SetEntityActive("manhunter_1", false);
AddTimer("", RandFloat(60.0f, 120.0), "activatemonster1");
}

You had the wrong callback syntax in the first AddTimer call.

"Veni, vidi, vici."
"I came, I saw, I conquered."
08-01-2013, 01:06 PM
Find


Messages In This Thread
Scripting problem - by JonnyAnomaly - 08-01-2013, 01:00 PM
RE: Scripting problem - by PutraenusAlivius - 08-01-2013, 01:06 PM
RE: Scripting problem - by JonnyAnomaly - 08-01-2013, 01:44 PM
RE: Scripting problem - by Your Computer - 08-01-2013, 05:19 PM
RE: Scripting problem - by JonnyAnomaly - 08-01-2013, 05:39 PM
RE: Scripting problem - by DeAngelo - 08-01-2013, 11:37 PM



Users browsing this thread: 1 Guest(s)