Update GMS_fnc_processIlleagalAIKills.sqf
Cleaned up code a bit.
This commit is contained in:
parent
27e31c5f48
commit
e8b863a8f5
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
by Ghostrider
|
by Ghostrider
|
||||||
4-12-17
|
6-1-17
|
||||||
--------------------------
|
--------------------------
|
||||||
License
|
License
|
||||||
--------------------------
|
--------------------------
|
||||||
@ -12,13 +12,13 @@
|
|||||||
|
|
||||||
private["_missionType","_wasRunover","_launcher","_legal"];
|
private["_missionType","_wasRunover","_launcher","_legal"];
|
||||||
params["_unit","_killer"];
|
params["_unit","_killer"];
|
||||||
//diag_log format["##-processIlleagalAIKills.sqf-## processing illeagal kills for unit %1",_unit];
|
diag_log format["##-processIlleagalAIKills.sqf-## processing illeagal kills for unit %1",_unit];
|
||||||
_launcher = _unit getVariable ["Launcher",""];
|
_launcher = _unit getVariable ["Launcher",""];
|
||||||
_legal = true;
|
_legal = true;
|
||||||
|
|
||||||
_fn_targetVehicle = { // force AI to fire on the vehicle with launchers if equiped
|
_fn_targetVehicle = { // force AI to fire on the vehicle with launchers if equiped
|
||||||
params["_unit","_vk"];
|
params["_unit","_vk"];
|
||||||
private
|
private["_unit"];
|
||||||
{
|
{
|
||||||
if ( ( (getPos _vk) distance2d (getPos _x) ) < 500 ) then
|
if ( ( (getPos _vk) distance2d (getPos _x) ) < 500 ) then
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user