Entity does not Exist

Blitz3D Forums/Blitz3D Beginners Area/Entity does not Exist

3DFish(Posted 2004) [#1]
Hi there

I'm using Blitz3D 1.6.4

I get "Entity does not exist" error, each time I exit my game demo.

I press escape to exit.
It gives the error each time on the same model.

Here are pieces of my code:

Global carp_model#
--
carp_model#=LoadMD2( "fishblitz.md2" )
--
Some time during the demo, I hide the entity.
HideEntity carp_model
---
If keydown(1) then
FreeEntity carp_model -> "Error on this line"
endif

Anyone had the same problem?


Ross C(Posted 2004) [#2]
Does the carp_model appear on screen?


3DFish(Posted 2004) [#3]
Yes

I created a Type -> Fish

f.Fish=New Fish
f\entity=CopyEntity( carp_model )

During gameplay, all the carp models appear
on screen.


Ross C(Posted 2004) [#4]
carp_model#=LoadMD2( "fishblitz.md2" )

don't do that. You making the variable a float.

try

carp_model=LoadMD2( "fishblitz.md2" )

Never make a variable your using for a handle for entities, a float. Float have limited accuracy.


3DFish(Posted 2004) [#5]
thanks i'll try that