-
08-01-2009, 12:15 AM #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
-
08-01-2009, 11:45 AM #2
Re: Dead bodies?
You mean static bodies? Or bodies that you placed in the editor?

-
08-01-2009, 01:30 PM #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.
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.Code:this addEventHandler ["killed", {sleep 600; deleteVehicle _this select 0;}];
-
08-01-2009, 02:04 PM #4
- Join Date
- Jul 2009
- Posts
- 5
-
08-02-2009, 12:41 PM #5
-
08-02-2009, 05:35 PM #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...
-
08-02-2009, 11:16 PM #7
-
08-03-2009, 10:48 AM #8
- Join Date
- Jan 2008
- Location
- Leicester, United Kingdom, United Kingdom
- Age
- 21
- Posts
- 2,987
- Blog Entries
- 27
-
08-04-2009, 01:23 PM #9
- Join Date
- Jul 2009
- Posts
- 5
Re: Dead bodies?
ok thanks for the help
-
08-05-2009, 12:29 AM #10
- Join Date
- Jul 2007
- Location
- Mountain Home AFB, ID
- Posts
- 1,196
-
08-13-2009, 12:39 AM #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?
-
08-13-2009, 12:41 AM #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.
-
08-24-2009, 12:02 AM #13
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.
-
09-03-2009, 09:29 AM #14
- Join Date
- Aug 2007
- Posts
- 99
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)



Reply With Quote













Bookmarks