EntityCollided

Blitz3D Forums/Blitz3D Beginners Area/EntityCollided

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.

global mesh1,mesh2
entitytype mesh1,1
entitytype mesh2,2
collisions 1,2,2,1

Function Block_distroy()
For z.map = Each map
For x.Bullet = Each Bullet
If EntityCollided(z\mesh2,2)=x\mesh1 then


FreeEntity x\Mesh1
FreeEntity z\Mesh2
Delete z
Delete x
EndIf
Next
Next
End Function

think thats how i did it last time