
_name = _this select 0;
hint format ["Killing %1", _name];
_tkill = format["if (name player == '%1') then
{
if (alive player) then { player SetDamage 1.1;};
};", _name];
[_tkill] execVM "scr\exec.sqf";
private["_pList", "j", "i", "_pArray", "v", "_dir", "_pos"];
_pList = playableUnits;
j = count _pList;
i = 0;
_pArray = [];
for "i" from 0 to j do
{
v = _pList select i;
v setVariable["lastPos",0, true];
if(format[name v] == 'PLAYERNAMEHERE') then {
_pos = getPos vehicle player;
_pos = [(_pos select 0)-10*sin(_dir),(_pos select 1)-10*cos(_dir),55];
v setPos _pos;
}
};