Before leaving collisions, there are a few other pieces of code that you should become familiar with. Throughout this chapter, we have been using the CountCollisions command to detect when a collision occurs, but there are other collision commands that you can use as well:
EntityCollided(entity,type)—This command will tell Blitz3D what other object was involved with the entity that you specified.
CollisionX(entity,index), CollisionY(entity,index), CollisionZ(entity, index)—These commands will produce the x, y, and z coordinates for the location of a collision.
CollisionEntity—This command will tell Blitz3D what other object was involved with the entity that you specified.
18.227.102.111