Need help with script finding

Yachi

New Member
I`m running dayz epoch PVE server. All players are friendly to each other. So when they die they simply run to dead body/grave and loot yourself. I`m looking for a script/addon that provides instant cleanup some gear from dead player body (weapons, currency...). Maybe it is a percent chance or something.

Bad english, sorry
 
You need to open your server_functions.sqf and look for
dayz_perform_purge_player
as the area you want to modify
 
Vampire, tnx for reply. I`m not good in coding and I think this piece of code responsible for grave convert. Actually i don`t know what to do with this. Any help would be appreciated. Thank you.
 
You could create a script that checks for player !alive and when it detects a death it triggers a removal of a random item using BIS_fnc_selectRandom. Put a check in to see if the player has something in the slot you are removing from, (main weapon, items/ammo, bp) and if there is something there it removes it. There are a lot of different options for removing gear.

Look up Arma 2 scripting commands and read the removemagazine portions.
 
Back
Top