Get rid of entity pointer

Posted By: D3D

Get rid of entity pointer - 02/04/08 14:29

Trying to remove a entity from the level after the player has logged out of the online game. Did so with ent_remove, but it still seem to use the pointer. Could someone tell me if I need to remove the pointer with pointer=null after ent_remove, or another way to get rid of it? Don't need a script, just a hint will be fine.
Posted By: Excessus

Re: Get rid of entity pointer - 02/04/08 14:49

Quote:

but it still seem to use the pointer.



What is "it"? If your script is still using the pointer, the most common solution would be to set it to NULL and check everywhere you use it if it's not NULL. Actions and such should be stopped automatically when the entity is removed, so that's of no concern.
Posted By: D3D

Re: Get rid of entity pointer - 02/07/08 08:04

Almost forgot about this post, but I got it fixed now thanks ^^
© 2024 lite-C Forums