Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Filename:
- * missionTasks.sqf
- *
- * Description:
- * Automatically called
- *
- * Created by [KH]Jman
- * Creation date: 02/03/2013
- * Email: jman@kellys-heroes.eu
- * Web: http://www.kellys-heroes.eu
- *
- * */
- // ====================================================================================
- case "objective_1": {
- debuglog str _taskState;
- if (_taskState == "") then {
- [
- [units group player, // Task owner(s)
- _taskID, // task ID (used when setting task state, destination or description later)
- ["Clear the beach camp of enemy and secure.","Secure beach camp",""], // Task params
- position objective_target_1, // task destination
- true // true to set task as current upon creation
- ],
- "BIS_fnc_taskCreate", // task function
- nil, // execution only on specific client; undefined here, will be by default executed for everyone
- true // true for persistent execution (i.e., also for players connected by JIP)
- ] call BIS_fnc_MP;
- } else {
- debuglog str _this;
- if (_this == "Current") then {_taskID call BIS_fnc_taskSetCurrent} else {[_taskID, _this] call BIS_fnc_taskSetState}
- }
- };
- case "objective_2": {
- if (_taskState == "") then {
- [
- [
- units group player,
- _taskID,
- ["Destroy the communications tower with explosives","Destroy comms tower",""],
- position objective_target_2,
- false
- ],
- "BIS_fnc_taskCreate",
- nil,
- true
- ] call BIS_fnc_MP;
- } else {
- if (_this == "Current") then {_taskID call BIS_fnc_taskSetCurrent} else {[_taskID, _this] call BIS_fnc_taskSetState}
- }
- };
- case "objective_3": {
- if (_taskState == "") then {
- [
- [
- units group player,
- _taskID,
- ["Search the area for intel backpack","Search area",""],
- position objective_target_3,
- false
- ],
- "BIS_fnc_taskCreate",
- nil,
- true
- ] call BIS_fnc_MP;
- } else {
- if (_this == "Current") then {_taskID call BIS_fnc_taskSetCurrent} else {[_taskID, _this] call BIS_fnc_taskSetState}
- }
- };
- case "objective_4": {
- if (_taskState == "") then {
- [
- [
- units group player,
- _taskID,
- ["Steal the enemy helicopter's flight recorder","Steal FR",""],
- position objective_target_4,
- false
- ],
- "BIS_fnc_taskCreate",
- nil,
- true
- ] call BIS_fnc_MP;
- } else {
- if (_this == "Current") then {_taskID call BIS_fnc_taskSetCurrent} else {[_taskID, _this] call BIS_fnc_taskSetState}
- }
- };
- case "objective_5": {
- if (_taskState == "") then {
- [
- [
- units group player,
- _taskID,
- ["Clear enemy forward operating base","Clear FOB",""],
- position objective_target_5,
- false
- ],
- "BIS_fnc_taskCreate",
- nil,
- true
- ] call BIS_fnc_MP;
- } else {
- if (_this == "Current") then {_taskID call BIS_fnc_taskSetCurrent} else {[_taskID, _this] call BIS_fnc_taskSetState}
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement