I am attempting to make an entity "A" that accepts another entity "B" as "ammo" (They collide then the script inside entity "A" deletes entity "B" and reacts by adding blah to blah)
However I cannot seem to get the collision to even register for ANYTHING.
I stripped the unnecessary code to make it easier to read
[CODE]
function ENT:Initialize()
--self is setup
--self starts timer and functions
self:AddCallback( "PhysicsCollide", function(entity,data)
print("COLLIDED WITH SOMETHING")
end)
end
[/CODE]
Am I doing something wrong? (ofc I am otherwise I wouldn't be here :))
Both entities must have physics objects.
You should use ENT:PhysicsCollide instead.
Try ENT:PhysicsCollide on the other entity.
[QUOTE=Robotboy655;50774321]Both entities must have physics objects.
You should use ENT:PhysicsCollide instead.
Try ENT:PhysicsCollide on the other entity.[/QUOTE]
Thanks! Helped a bunch.
Sorry, you need to Log In to post a reply to this thread.