move mission into src
Build Mission PBO / pack (push) Failing after 20s
Build Mission PBO / deploy (push) Has been skipped

This commit is contained in:
MrFastwind
2026-06-14 01:53:24 +02:00
parent b5bd14928e
commit 5a7879bca8
479 changed files with 45 additions and 34 deletions
@@ -0,0 +1,43 @@
/*
File: fn_handleCrateStorageTask.sqf
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
Date: 2020-05-09
Last Update: 2020-05-09
License: MIT License - http://www.opensource.org/licenses/MIT
Description:
Handles the monitoring for the store crate tutorial task.
Parameter(s):
_taskId - Task ID of the task to handle [STRING, defaults to ""]
_obj - Object connected to the task [OBJECT, defaults to objNull]
Returns:
Function reached the end [BOOL]
*/
params [
["_taskId", "", [""]],
["_obj", objNull, [objNull]]
];
if (_taskId isEqualTo "" || isNull _obj) exitWith {["Invalid parameters given"] call BIS_fnc_error; false};
if (!canSuspend) exitWith {_this spawn KPLIB_fnc_handleCrateStorageTask};
[
allPlayers,
[_taskId, "KPLIB_Tasks_Tutorial_Fob_03"],
["", localize "STR_TUTORIAL_CRATE"],
[_obj, true],
"CREATED",
-1,
false,
"default",
true
] call BIS_fnc_taskCreate;
waitUntil {sleep 0.1; (toLower (typeOf (attachedTo _obj))) in KPLIB_storageBuildings};
[_taskId, "SUCCEEDED", false] call BIS_fnc_taskSetState;
true