Comparing 2 types

Blitz3D Forums/Blitz3D Beginners Area/Comparing 2 types

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.

Yes 'handle' is a pointer to itself and collision is the pointer to the entity that it collided with.

O.k.

I have

1.Bullet collisions with ships
If red\bullet_collision=blue\handle
blue\shield=blue\shield-10
endif

2.
Ship collision with ship
If red\ship_collision=blue\handle
blue\translatex=red entityyaw(red\handle)
endif

The reason why I used types:
1.
I need to know which ship fired the bullet so I can tell which type of bullet was used
2.
I need to give the ship that got hit a direction to go.The opposite direction to the other ship.

Is there a better way?
(everything works fine, it is just a bit slow)