• 0
leonardos1978

Kill Kempers near SafeZone

Question

Does anybody know how to make this script?

Spoiler

/**
 * ExileServer_util_getFragKiller
 *
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_killer","_player"];
_killer = _this;
_player = objNull;
if (isPlayer _killer) then 
{
    if ((typeOf _killer) isEqualTo "Exile_Unit_Player") then
    {
        _player = _killer;    
    }
    else 
    {
        _uid = getPlayerUID _killer;
        {
            if ((getPlayerUID _x) isEqualTo _uid) exitWith 
            {
                _player = _x;
            };
        }
        forEach allPlayers;
    };

  if {

     _player killing distance near safezone; //death distance condition in safezone

     }

   then

   {

   _killer die flash;

   }
  }
  else 
 { 
    if (isUAVConnected _killer) then 
    {
        _player = (UAVControl _killer) select 0;
    };
};
_player

 

Share this post


Link to post
Share on other sites

0 answers to this question

There have been no answers to this question yet

Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.