Entity does not exist.. ?

Blitz3D Forums/Blitz3D Beginners Area/Entity does not exist.. ?

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.

Hi all.. why do i somtimes get an Entity does not exist" error with this code.

If CountCollisions(car(ac)) Then
;ERROR ON THE FOLLOWING LINE SOMETIMES
If GetEntityType(CollisionEntity(car(ac),1))=2 Then
Do some stuff here
endif
endif