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
Can someone explain how to make a CollideCallback to work with monster and player?
xxiitrysohardxx Offline
Junior Member

Posts: 2
Threads: 1
Joined: Mar 2012
Reputation: 0
#1
Can someone explain how to make a CollideCallback to work with monster and player?

I need someone to help me with getting this to work. I'm using "AddEntityCollideCallback" on the monster and player, and I'm trying to get it to where when the monster collides with the player (i.e. hitting the player) so I can use Callback Functions.
03-31-2012, 03:17 AM
Find
SplitHeadProduction Offline
Junior Member

Posts: 28
Threads: 8
Joined: Mar 2012
Reputation: 6
#2
RE: Can someone explain how to make a CollideCallback to work with monster and player?

just put the asParent as the monsters name and for the asChild put that as Player


that should work
03-31-2012, 04:08 AM
Find
xxiitrysohardxx Offline
Junior Member

Posts: 2
Threads: 1
Joined: Mar 2012
Reputation: 0
#3
RE: Can someone explain how to make a CollideCallback to work with monster and player?

Could you type out exactly how I'd have it in the script? I'm sorry, I'm sort of a novice at this.

Wait, I have tried that and won't work. Is this what it's supposed to look like?
AddEntityCollideCallback("monster_2", "Player", "KnockOut", true, 1);

(This post was last modified: 03-31-2012, 06:32 AM by xxiitrysohardxx.)
03-31-2012, 05:40 AM
Find
SplitHeadProduction Offline
Junior Member

Posts: 28
Threads: 8
Joined: Mar 2012
Reputation: 6
#4
RE: Can someone explain how to make a CollideCallback to work with monster and player?

(03-31-2012, 05:40 AM)xxiitrysohardxx Wrote: Could you type out exactly how I'd have it in the script? I'm sorry, I'm sort of a novice at this.

Wait, I have tried that and won't work. Is this what it's supposed to look like?
AddEntityCollideCallback("monster_2", "Player", "KnockOut", true, 1);
yeah it should look like that. you have to have the function script as well telling the game what to do after this collision happens
03-31-2012, 02:32 PM
Find




Users browsing this thread: 1 Guest(s)