Skip to content

Commit f4cae5a

Browse files
committed
Fixed duplicated actions
1 parent 38fb765 commit f4cae5a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/support/taxi/helotaxi.sqf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ calltaxi = {
6666
_helo animateDoor ['door_L', 1];
6767
};
6868

69+
removeallactions _helo;
6970
_action = _helo addaction ["<t color='#00b7ff'>Give a LZ to the pilot</t>", "support\taxi\mapclickhelo.sqf", [_markerpickup, _helo, _helogroup, _pilot], 0, true, true, "", "_this == player"];
7071

7172
waituntil {taxiCanTakeOff};
@@ -204,6 +205,7 @@ main = {
204205
taxiCanTakeOff = false;
205206

206207
if (helipos distance _helo < 10) exitwith {
208+
removeallactions _helo;
207209
_action = _helo addaction ["<t color='#00b7ff'>Give a LZ to the pilot</t>", "support\taxi\mapclickhelo.sqf", [_markerpickup, _helo, _helogroup, _pilot], 0, true, true, "", "_this == player"];
208210
_helo setfuel 0;
209211
_helo engineon false;
@@ -270,7 +272,7 @@ main = {
270272
};
271273

272274
waituntil {(getposatl _helo select 2) <= 1};
273-
275+
removeallactions _helo;
274276
_action = _helo addaction ["<t color='#00b7ff'>Give a LZ to the pilot</t>", "support\taxi\mapclickhelo.sqf", [_markerpickup, _helo, _helogroup, _pilot], 0, true, true, "", "_this == player"];
275277
_helo setfuel 0;
276278
_helo engineon false;

0 commit comments

Comments
 (0)