Another Collision Question.

Blitz3D Forums/Blitz3D Beginners Area/Another Collision Question.

I need my ship to physically stop moving when it hits certain objects. I have tried setting the collision mode like this:
Collisions BODY,WALL,2,1


But that doesn't work or isn't enough. So I am thinking that the EntityCollision command is the way to go. But I am a little confused. The command help says it has two parameters - entity and type. But there is no example on how to use it. Can someone explain what the "Type" is for me please.

I assume it is used like this:

If EntityCollided (cube,type) Then
...code...
EndIf


If I know what the type value should be then hopefully I can use this to test things out properly.

Thanks

Max