Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with scripting monsters
LulleBulle Offline
Member

Posts: 101
Threads: 33
Joined: Feb 2012
Reputation: 0
#5
RE: Problem with scripting monsters

(07-01-2012, 10:44 PM)EXAWOLT Wrote: void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "ActivateMonster", true, 1);
}

void ActivateMonster(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_2", true);
}
i dont think you want the monster to appear when leaving the map?Wink
That wasn't his error, he just had typos, he forgot the closing bracket in the monster function and also the () at OnLeave.
(This post was last modified: 07-02-2012, 06:04 PM by LulleBulle.)
07-02-2012, 06:03 PM
Find


Messages In This Thread
Problem with scripting monsters - by The chaser - 07-01-2012, 10:31 PM
RE: Problem with scripting monsters - by Cruzore - 07-01-2012, 10:41 PM
RE: Problem with scripting monsters - by EXAWOLT - 07-01-2012, 10:44 PM
RE: Problem with scripting monsters - by LulleBulle - 07-02-2012, 06:03 PM
RE: Problem with scripting monsters - by EXAWOLT - 07-02-2012, 06:53 PM
RE: Problem with scripting monsters - by Cruzore - 07-02-2012, 07:21 PM



Users browsing this thread: 1 Guest(s)