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 Help My script doesn't work?
fuytko Offline
Junior Member

Posts: 41
Threads: 6
Joined: Jun 2011
Reputation: 1
#7
RE: My script doesn't work?

Try this!

///////////////////////////
//Run when entering map
void OnStart()
{
   SetEntityPlayerInteractCallback("fresh_one", "ActivateMonster", true);
}

void ActivateMonster(string &in asEntity)
{
     SetEntityActive("grunt", true);
     AddEnemyPatrolNode("grunt", "PathNodeArea_1", 0, "Idle");
     AddEnemyPatrolNode("grunt", "PathNodeArea_2", 0, "Idle");
     PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
}

/////////////////////////////
// Run when leaving map
void OnLeave()
{

}


(This post was last modified: 08-16-2012, 11:32 AM by fuytko.)
08-16-2012, 11:31 AM
Find


Messages In This Thread
My script doesn't work? - by elbichopt - 08-15-2012, 06:09 PM
RE: My script doesn't work? - by Steve - 08-15-2012, 09:01 PM
RE: My script doesn't work? - by elbichopt - 08-15-2012, 10:10 PM
RE: My script doesn't work? - by Adny - 08-15-2012, 10:14 PM
RE: My script doesn't work? - by elbichopt - 08-15-2012, 10:17 PM
RE: My script doesn't work? - by elbichopt - 08-16-2012, 10:35 AM
RE: My script doesn't work? - by fuytko - 08-16-2012, 11:31 AM
RE: My script doesn't work? - by elbichopt - 08-16-2012, 11:42 AM
RE: My script doesn't work? - by fuytko - 08-16-2012, 11:51 AM
RE: My script doesn't work? - by elbichopt - 08-16-2012, 11:53 AM
RE: My script doesn't work? - by fuytko - 08-16-2012, 12:00 PM
RE: My script doesn't work? - by elbichopt - 08-16-2012, 12:05 PM
RE: My script doesn't work? - by fuytko - 08-16-2012, 12:09 PM
RE: My script doesn't work? - by elbichopt - 08-16-2012, 12:11 PM
RE: My script doesn't work? - by ZyLogicX - 08-16-2012, 12:16 PM
RE: My script doesn't work? - by fuytko - 08-16-2012, 12:20 PM
RE: My script doesn't work? - by elbichopt - 08-16-2012, 12:33 PM
RE: My script doesn't work? - by fuytko - 08-16-2012, 12:44 PM
RE: My script doesn't work? - by elbichopt - 08-16-2012, 02:08 PM
RE: My script doesn't work? - by elbichopt - 08-16-2012, 07:36 PM
RE: My script doesn't work? - by TheGreatCthulhu - 08-16-2012, 07:45 PM
RE: My script doesn't work? - by elbichopt - 08-16-2012, 07:47 PM
RE: My script doesn't work? - by Theforgot3n1 - 08-16-2012, 09:11 PM



Users browsing this thread: 2 Guest(s)