Hi, i started scripting in eden editor.
I have and holdaction in the int.sqf and i don't understand why my holdaction is not repeatable ?
this is the holdaction :
[
AIHeli, // Object the action is attached to
"Heli Transport", // Title of the action
"\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_takeOff2_ca.paa", // Idle icon shown on screen
"\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_takeOff2_ca.paa", // Progress icon shown on screen
"_this distance _target < 12", // Condition for the action to be shown
"_caller distance _target < 12", // Condition for the action to progress
{
openMap true;
_condition = true;
//hint format["target Position: %1", getMarkerPos "targerMarker"];
while {_condition} do {
player onMapSingleClick {
_mousePos = getMousePosition;
_worldCoord = (findDisplay 12 displayCtrl 51) ctrlMapScreenToWorld _mousePos;
_worldCoord = [_worldCoord select 0, _worldCoord select 1, 0];
_arr = [0,0,0];
//hint format["Mouse Position: %1 world coord : %2", _mousePos, _worldCoord];
if (_arr isEqualTypeArray _worldCoord) then {
openMap false;
["B_Heli_Light_01_F", _worldCoord] call JP_fnc_taxiHeli;
_condition = nil;
};
};
};
}, // Code executed when action starts
{}, // Code executed on every progress tick
{}, // Code executed on completion
{}, // Code executed on interrupted
[], // Arguments passed to the scripts as _this select 3
5, // Action duration in seconds
0, // Priority
false, // Remove on completion
false // Show in unconscious state
] call BIS_fnc_holdActionAdd;
someone have a solution ?