I'm using the latest version(1.83). I have a custom type holding the camera handle. The weird part is that I can unparent it (as I would any entity). I have it parented to a player model in the game.. All of this is occuring as I'm deleting all of the game pieces and jumping back into the main menu.
Type T_Camera Field ObjectHandle Field minDist# Field maxDist# Field FogR Field FogG Field FogB Field FogMin# Field FogMax# Field CamPivot Field MaxRot# Field xRot# Field yRot# Field xRotVel# Field yRotVel# Field CamTarget End Type Function CleanUpGame() For Player.T_Player = Each T_Player FreeEntity Player\Rider\CurrentWeapon\ObjectHandle Delete Player\Rider\CurrentWeapon FreeEntity Player\Rider\ObjectHandle Delete Player\Rider For reticle.T_reticle = Each T_reticle FreeEntity reticle\ObjectHandle Delete reticle Next FreeEntity Listener Listener = 0 ;FreeEntity Camera\ObjectHandle EntityParent Camera\ObjectHandle, 0 FreeEntity Player\Ostrich\ObjectHandle Delete Player\Ostrich Delete Player Next ; Reset Flags MainMenuFlag = 1 MenuLoadFlag = 0 SinglePlayerFlag = 0 InGameFlag = 0 CleanUpGameFlag = 0 End Function