Hi! Simple question :)
What is the proper way to do a freeEntity only "if the entity exists"?
I tried:
if entity then freeEntity entity
But that is also executed when the entity does exists.
I'd like to avoid errors as "entity does not exist".
Just to be sure, I'd like to reset and free a lot of stuff when the player re-enters the game.
---------
EDIT: Darn, ProPer, not ProBer as mentioned in the post name :)
What is the proper way to do a freeEntity only "if the entity exists"?
I tried:
if entity then freeEntity entity
But that is also executed when the entity does exists.
I'd like to avoid errors as "entity does not exist".
Just to be sure, I'd like to reset and free a lot of stuff when the player re-enters the game.
---------
EDIT: Darn, ProPer, not ProBer as mentioned in the post name :)