FreeEntity frees the mesh, blitz is using, from memory.
Delete, works by deleting the type object you have created. If you use this on it's own, and you have fields which contain mesh,texture,sprite, sound handles attached (basically any form of media or handle), they will still remain in memory, with no link to them.
Your having problems because, you are freeing the mesh, but leaving behind the type object and the field "bubble\entity" reference to it.
You need to:
Free the mesh
Delete the type object.
As for you bubble not coming out of the exhaust, i believe it might have something to do with the entity XYZ positions getting taken from the exhausts PARENT. I believe the exhaust is parented to the car?
If so, you need to do:
Use the global parameters in the EntityX Y and Z commands.
Delete, works by deleting the type object you have created. If you use this on it's own, and you have fields which contain mesh,texture,sprite, sound handles attached (basically any form of media or handle), they will still remain in memory, with no link to them.
Your having problems because, you are freeing the mesh, but leaving behind the type object and the field "bubble\entity" reference to it.
You need to:
Free the mesh
Delete the type object.
FreeEntity bubble\entity Delete bubble.bubble
As for you bubble not coming out of the exhaust, i believe it might have something to do with the entity XYZ positions getting taken from the exhausts PARENT. I believe the exhaust is parented to the car?
If so, you need to do:
PositionEntity bubble\entity, EntityX(sphere\exhaustpipe,true), EntityY(sphere\exhaustpipe,true), EntityZ(sphere\exhaustpipe,true) - 2,true
Use the global parameters in the EntityX Y and Z commands.