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?
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: What do i put in between } and { after SetEntityActive?

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);
}

Trying is the first step to success.
01-25-2013, 09:48 AM
Find


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



Users browsing this thread: 1 Guest(s)