Adjust center of zeus AI task modules

The tasks should center on the logic rather than the group leader.

The search nearby module is also deleted after it's processed.
This commit is contained in:
SilentSpike 2016-05-19 22:32:05 +01:00
parent 3a1dba4486
commit adaa10aea5
4 changed files with 4 additions and 3 deletions

View File

@ -48,3 +48,4 @@ switch (false) do {
//Perform the module function:
[QGVAR(moduleSearchNearby), _unit, [_unit]] call EFUNC(common,targetEvent);
deleteVehicle _logic;

View File

@ -67,7 +67,7 @@ private _fnc_onConfirm = {
private _unit = effectiveCommander (attachedTo _logic);
private _radius = GETVAR(_display,GVAR(radius),50);
[QGVAR(moduleDefendArea), _unit, [_unit,nil,_radius]] call EFUNC(common,targetEvent);
[QGVAR(moduleDefendArea), _unit, [_unit,getPosASL _logic,_radius]] call EFUNC(common,targetEvent);
deleteVehicle _logic;
};

View File

@ -67,7 +67,7 @@ private _fnc_onConfirm = {
private _unit = effectiveCommander (attachedTo _logic);
private _radius = GETVAR(_display,GVAR(radius),50);
[QGVAR(modulePatrolArea), _unit, [_unit,nil,_radius,5]] call EFUNC(common,targetEvent);
[QGVAR(modulePatrolArea), _unit, [_unit,getPosASL _logic,_radius,5]] call EFUNC(common,targetEvent);
deleteVehicle _logic;
};

View File

@ -68,7 +68,7 @@ private _fnc_onConfirm = {
private _radius = GETVAR(_display,GVAR(radius),50);
private _marker = QGVAR(ModuleSearchArea) + str(_unit);
createMarker [_marker, getPosASL _unit];
createMarker [_marker, getPosASL _logic];
_marker setMarkerAlpha 0;
_marker setMarkerShape "ELLIPSE";
_marker setMarkerSize [_radius,_radius];