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
Simple help with scripting?
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: Simple help with scripting?

Here, try this:

void OnStart()
{
     AddEntityCollideCallback("Player", "MonsterArea", "MonsterFunc1", true, 1);
}
void MonsterFunc1(string &in asParent, string &in asChild, int alState)
{
     SetEntityActive("Monsterguy", true);
     AddEnemyPatrolNode("Monsterguy", "Path01", 0, "");
}

05-22-2011, 12:30 AM
Find


Messages In This Thread
Simple help with scripting? - by KenOfAllTrades - 05-22-2011, 12:19 AM
RE: Simple help with scripting? - by Kyle - 05-22-2011, 12:30 AM



Users browsing this thread: 1 Guest(s)