jwllorens 43 Posted July 3, 2016 I am trying to find a way to do some object cleanup in a multiplayer mission. I have some units, and when they are dead, I am removing them some time after they die. I would like to change the way this works so that they don't pop out of existence so noticeably. Instead, I want to check to make sure that the unit is not visible by any player on the server and then delete them once they are not. Anyone have any insight? I was thinking of something using intersect to check if they are behind a building, and maybe screentoworld to check if they are behind the player or outside of their field of view. But I am not sure how to use these commands or if I am headed on the right track. Also, how do I deal with players that have different resolutions or maybe multi screen displays? Is it even worthwhile to do this or would the performance hit for checking something like this for a bunch of dead soldiers be too great? Maybe I could optimize it by deleting them without the LOS check if they are outside of a certain range, and then to further optimize, delete them irrespective of LOS if the number of dead soldiers is greater than some limit, so these LOS checks would only be performed when a relatively small number of dead soldiers exists in the immediate vicinity of "the action". Share this post Link to post Share on other sites
killzone_kid 1329 Posted July 3, 2016 Of course you are free to make own life difficult, but there is a handy command https://community.bistudio.com/wiki/hideBodyfor this. Share this post Link to post Share on other sites
jwllorens 43 Posted July 3, 2016 Of course you are free to make own life difficult, but there is a handy command https://community.bistudio.com/wiki/hideBodyfor this. I suppose that is the way to go. But does it work for vehicle wrecks? I found the wreck and corpse manager settings and functions. How do those work? Share this post Link to post Share on other sites