(04-13-2012, 10:52 AM)Your Computer Wrote: I knew this was somewhat related to the challenge thread.
FYI: In order for two entities to report collision via AddEntityCollideCallback, the "parent" entity must be able to go through the "child" entity. This is simple to replicate with AddAttachedPropToProp (since attached props lose their physical bodies). You attach, for example, a block box to the interactable entity and then you use AddEntityCollideCallback on the entity attached to the interactable entity. Then in the collision callback you check if the interactable entity is being interacted with so that you may differentiate between swinging an object and tossing one. Though, you should note that the monster could still take damage if it happens to walk into the object.
Yeah, I'm trying to complete the challenges as an achievement for myself
Thanks for the tip, I am going to rewrite the whole code, it had many problems anyway...