-
Notifications
You must be signed in to change notification settings - Fork 5
Automatic Body Removal
| File location | init.sqf, description.ext |
| Enabled by default? | Yes |
| Enable/Disable in | description.ext |
| Runs on | Server |
In order to improve performance in large missions, a common technique is to remove dead bodies from the battlefield. This is accomplished by enabling the in-engine disposal manager. By default, this only affects non-player units, but it can be configured to also remove vehicle wrecks and player units.
By default, this component is configured to remove all dead bodies 180 seconds (3 minutes) after the unit has been been killed. This is defined in the variable corpseRemovalMinTime.
The default minimal distance a dead body needs to have to a player before it is removed is 500 metres. It is defined in the variable f_removeBodyDistance.
To change these defaults find these variables in the file init.sqf and change the values accordingly.
Because the gear on a dead body is also deleted, you may not want to apply this feature to some groups of soldiers (such as the players' group). To make a group exempt from this feature, and never delete its units' bodies open the file init.sqf and add the units that are not to be deleted like this:
removeFromRemainsCollector [unit1, unit2, vehicle1];For example, to make the unit UnitNO_CSL_SL exempt from this feature, add the following line:
removeFromRemainsCollector [UnitNO_CSL_SL];Note: Make sure not to accidentally remove the line removeFromRemainsCollector playableUnits;.
In the file description.ext you will find an commented-out section for wreck removal:
//Wrecks
//wreckManagerMode = 1; //0 = None, 1 = All, 2 = None_But_Respawned, 3 = All_But_Respawned
//wreckLimit = 20; //Vehicle wreck limit before which ( <= ) wreckRemovalMaxTime applies and after which ( > ) wreckRemovalMinTime applies.
//wreckRemovalMinTime = 180; // Remove all wrecks that have existed longer than wreckRemovalMinTime when wreckLimit is breached.
//wreckRemovalMaxTime = 3600; // Maximum time a wreck can remain on the ground (if total number of wrecks is equal or under wreckLimit). To enable removal of wrecks, remove the // at the beginning of each of these lines like the following:
//Wrecks
wreckManagerMode = 1; //0 = None, 1 = All, 2 = None_But_Respawned, 3 = All_But_Respawned
wreckLimit = 20; //Vehicle wreck limit before which ( <= ) wreckRemovalMaxTime applies and after which ( > ) wreckRemovalMinTime applies.
wreckRemovalMinTime = 180; // Remove all wrecks that have existed longer than wreckRemovalMinTime when wreckLimit is breached.
wreckRemovalMaxTime = 3600; // Maximum time a wreck can remain on the ground (if total number of wrecks is equal or under wreckLimit). Note: For more information on modifying parameters see: https://community.bistudio.com/wiki/Arma_3_Mission_Parameters and https://community.bistudio.com/wiki/Description.ext
Open the file description.ext and change the variable corpseManagerMode from 1 to 0.
- Assign Gear
- Assign Gear AI
- Authorized Crew Check
- Briefing
- Casualties Cap
- Disable Thermals
- Dynamic View Distance
- E & E Check
- FCS
- Fire Team Member Markers
- Group Markers
- Group Join
- Map Click Teleport
- Medical System
- Mission Conditions
- Multiplayer Ending Controller
- Nametags
- Premount
- Radio
- Remove Body
- Safe Start
- Group ID
- Color Teams
- AI Skill
- Spectator
- Zeus Support