-Money for killing team members.

-Money for killing team members.

« posted: Aug 04, 2022, 12:19 PM »
Hey guys does anyone have a script or can point me in the right direction for adding money deduction for players that kill there own team members.
  • Offline LeonZ
  • github.com/LeonZ2019/Lucky-s-Wasteland-Server
  • Geared Up
  • **
  • Posts: 44

Re: -Money for killing team members.

« Reply #1 posted: Aug 04, 2022, 02:45 PM »
i dont think anyone have that script but i think you can just try edit this file https://github.com/A3Wasteland/ArmA3_Wasteland.Altis/blob/dev/client/clientEvents/onKilled.sqf#L111
LeonZ#1848 on Discord

Re: -Money for killing team members.

« Reply #2 posted: Aug 05, 2022, 01:17 PM »
Found this script online.

_unit addMPEventHandler HandleDamage",
{
_unit = _this select 0;
_damage = _this select 2;
_shooter = _this select 3;
if (side _shooter == side _unit) then { _damage = 0};
_damage
}];

Could I get some advice on how I would use it to turn off friendly fire for team members.
Thanks.
  • Offline LeonZ
  • github.com/LeonZ2019/Lucky-s-Wasteland-Server
  • Geared Up
  • **
  • Posts: 44

Re: -Money for killing team members.

« Reply #3 posted: Aug 05, 2022, 03:49 PM »
try look for the mp event name in the file then add those script below/inside it
LeonZ#1848 on Discord

Re: -Money for killing team members.

« Reply #4 posted: Today at 03:00 AM »
It doesn't matter what it is as long as the player that is killing there own team mates e.g players and AI gets penalized so that the behavior changes. 
  • Offline LeonZ
  • github.com/LeonZ2019/Lucky-s-Wasteland-Server
  • Geared Up
  • **
  • Posts: 44

Re: -Money for killing team members.

« Reply #5 posted: Today at 06:43 AM »
I think you can try on client side with it is inside client folder


Sent from my iPhone using Tapatalk
LeonZ#1848 on Discord