How do you destroy a mesh upon colision?

Blitz3D Forums/Blitz3D Programming/How do you destroy a mesh upon colision?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Learning is a beautiful experience which never ends. :)

Deffo!!

could do
[code]
for i=0 to countcollisions(player)-1 ; (i think)
ref = entitycollided(player, coll_world) ; return what you just hit!
freentity ref
; or
entityalpha ref,0 ; hiding it, but keep the object
next