Quote:
//------------------------------------------------------------------------------------------------- //------------------------------------------------------------------------------------------------- //DLL Function: MP_KillEntity //Purpose: If an entity has been removed, you MUST call this function to cleanup all copies of // the entity that are on all remote machines. //Parameters: // pEnt - (type 'C-Script' ENTITY) - multiplayer entity that you wish to kill/destroy //------------------------------------------------------------------------------------------------- dllfunction MP_KillEntity(pEnt);
I don't get it. "If an entity has been removed, you MUST call this function to cleanup all copies of"... if an entity has been removed, and I type: MP_KillEntity(entity) aferwards, the entity pointer is null.. so... what the heck??
also: do I call this on the client who created the entity? or the server? or... all clients?
if I use mp_killentity, will there still be an entity afterwards that I need to remove using ent_remove, like this:
mp_killentity(player); ent_remove(player);
?? help!?
~"I never let school interfere with my education"~ -Mark Twain
|