mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
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:
parent
3a1dba4486
commit
adaa10aea5
@ -48,3 +48,4 @@ switch (false) do {
|
||||
|
||||
//Perform the module function:
|
||||
[QGVAR(moduleSearchNearby), _unit, [_unit]] call EFUNC(common,targetEvent);
|
||||
deleteVehicle _logic;
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user