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
What do i put in between } and { after SetEntityActive?
pingthepong Offline
Junior Member

Posts: 3
Threads: 1
Joined: Jan 2013
Reputation: 0
#5
RE: What do i put in between } and { after SetEntityActive?

(01-25-2013, 09:48 AM)BeeKayK Wrote: Because these two lines

{
AddEntityCollideCallback("Player", "grunt3area", "monster3", true,1);
AddEntityCollideCallback("grunt3","stop","CollideStop3",true,1);
}


Are not being called.


They would be called if they were under fx. void OnStart


void OnStart()
{
AddEntityCollideCallback("Player", "grunt3area", "monster3", true,1);
AddEntityCollideCallback("grunt3","stop","CollideStop3",true,1);
}



IMPORTANT:
You cannot have 2 void OnStart's.
You must place the lines next to the other, in the first void OnStart like this:


void OnStart()
{
AddEntityCollideCallback("Player", "grunt_area", "monster", true,1);
AddEntityCollideCallback("grunt1","stop","CollideStop",true,1);
AddEntityCollideCallback("Player", "grunt3area", "monster3", true,1);
AddEntityCollideCallback("grunt3","stop","CollideStop3",true,1);
}

It worked! thanks man! +rep
01-25-2013, 09:52 AM
Find


Messages In This Thread
RE: What do i put in between } and { after SetEntityActive? - by pingthepong - 01-25-2013, 09:52 AM



Users browsing this thread: 1 Guest(s)