Welcome to Tactical Gamer

+ Reply to Thread
Results 1 to 14 of 14
Discussion: ArmA - Development / ArmA - Mission Development - Dead bodies? - Can anyone give me advice on how to delete bodies? I've tried some scripts from
  1. #1


    Join Date
    Jul 2009
    Posts
    5

    Dead bodies?

    Can anyone give me advice on how to delete bodies? I've tried some scripts from ArmA1 but I can't get them to work in ArmA2

  2.  
  3. #2

    PCLiPSE's Avatar

    Join Date
    Jun 2009
    Posts
    222

    Re: Dead bodies?

    You mean static bodies? Or bodies that you placed in the editor?

  4.  
  5. #3


    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    737

    Re: Dead bodies?

    Simple way to do it is to add a killed event handler to each unit.

    Code:
    this addEventHandler ["killed", {sleep 600; deleteVehicle _this select 0;}];
    Can change the sleep command to whatever timer you would like. This could potentially effect performance (not really sure) if you have a lot of units, or units that respawn (ie: over 200 instances of the EH). I doubt it would, but I haven't really tested that on a dedicated server with a high player count.

  6.  

     
  7. #4


    Join Date
    Jul 2009
    Posts
    5

    Re: Dead bodies?

    Quote Originally Posted by PCLiPSE View Post
    You mean static bodies? Or bodies that you placed in the editor?
    by bodies I mean when enemy units die

  8.  
  9. #5

    PCLiPSE's Avatar

    Join Date
    Jun 2009
    Posts
    222

    Re: Dead bodies?

    oh. woops :P

  10.  
  11. #6


    Join Date
    Jul 2007
    Location
    Mountain Home AFB, ID
    Posts
    1,196

    Re: Dead bodies?

    Given that bodies provide some measure of cover, I'm not sure why you would want to do this. It may not come up often but when it does...

  12.  

     
  13. #7

    Inkompetent's Avatar

    Join Date
    Jan 2006
    Location
    Sweden
    Posts
    848

    Re: Dead bodies?

    Quote Originally Posted by Uranium - 235 View Post
    Given that bodies provide some measure of cover, I'm not sure why you would want to do this. It may not come up often but when it does...
    Because of performance. In large missions with hundreds of AI, especially in those that dynamically spawns new AI when you get close to certain areas, you would want to ease the load on the server by removing corpses.




  14.  
  15. #8

    browna3's Avatar

    Join Date
    Jan 2008
    Location
    Leicester, United Kingdom, United Kingdom
    Age
    21
    Posts
    2,987
    Blog Entries
    27

    Re: Dead bodies?

    if its done throught the ambient combat module, then make sure you include the garbage cleaner module, it deletes units after you are a certain distance away from the action.

  16.  
  17. #9


    Join Date
    Jul 2009
    Posts
    5

    Re: Dead bodies?

    ok thanks for the help

  18.  

     
  19. #10


    Join Date
    Jul 2007
    Location
    Mountain Home AFB, ID
    Posts
    1,196

    Re: Dead bodies?

    Quote Originally Posted by Inkompetent View Post
    Because of performance. In large missions with hundreds of AI, especially in those that dynamically spawns new AI when you get close to certain areas, you would want to ease the load on the server by removing corpses.
    Hmm... okay. I was picturing something more along the lines of like, an 'anti-gore addon' where it deletes bodies as you kill them or something.

  20.  
  21. #11


    Join Date
    Aug 2009
    Posts
    12

    Re: Dead bodies?

    are u talkin about soldiers killed in the duration of the battle or bodies u put down prebattle?

  22.  
  23. #12


    Join Date
    Aug 2009
    Posts
    12

    Re: Dead bodies?

    oh yea i agree do it throught the ambient combat module u should find a script for it on Mr Murrays.

  24.  

     
  25. #13

    Smooov's Avatar

    Join Date
    Jun 2009
    Posts
    46

    Re: Dead bodies?

    The F2 framwork template has a script for that.But you would have to use the rest of the template or edit the sqf for certain scripts you dont want.

  26.  
  27. #14
    Fer
    Fer is offline


    Join Date
    Aug 2007
    Posts
    99

    Re: Dead bodies?

    Quote Originally Posted by Smooov View Post
    The F2 framwork template has a script for that.But you would have to use the rest of the template or edit the sqf for certain scripts you dont want.
    Take a look at www ferstaberinde com/f2/en/index.php?title=Automatic_Body_Removal for more information. That page also tells you all the files you need, if you choose to selectively use parts of F2.

  28.  

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts


  
 

Back to top