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
triggering a monster area ERROR
timonenluca Offline
Junior Member

Posts: 18
Threads: 7
Joined: Oct 2011
Reputation: 0
#1
triggering a monster area ERROR

////////////////////////////
// Run when entering map
void OnEnter()
{
AddEntityCollideCallback("player","script_1","monster",true,1);
}

void monster(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_brute_1",true);

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

}

It starts but when i go into the area (Script_1 it doesnt trigger Sad) can someone help me wiht this? im super new to scripting im learning it for about 10 min now but thanks for reading
08-06-2012, 06:41 PM
Find
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#2
RE: triggering a monster area ERROR

AddEntityCollideCallback("player","script_1","monster",true,1);


Try to set player with a capital P

CURRENT PROJECT:
A Fathers Secret == Just started
08-06-2012, 06:53 PM
Find
timonenluca Offline
Junior Member

Posts: 18
Threads: 7
Joined: Oct 2011
Reputation: 0
#3
RE: triggering a monster area ERROR

(08-06-2012, 06:53 PM)ZereboO Wrote: AddEntityCollideCallback("player","script_1","monster",true,1);


Try to set player with a capital P
thanks it worked man that wa stupid haha xD
08-06-2012, 07:00 PM
Find




Users browsing this thread: 2 Guest(s)