Skip to content
shukari edited this page May 17, 2020 · 3 revisions

Folder Structure

Missionfolder

  • init.sqf
  • tasks
    • t1.sqf

init.sqf

TBMod_tasks_Tasks = ["T1","T2", "T3"];

tasks Template

_canInit = {
    true; //Startet sofort
};

_init = {
	
};

_initserver = {

};

_canComplete ={
	!alive badenemy;
};

_complete = {
	
};

_completeServer = {

};

_canFail = {
	false;
};

_failed = {

};

_failedServer = {

};

[_canInit,_init,_initserver,_canComplete,_complete,_completeServer,_canFail,_failed,_failedServer];

tasks Example

_canInit = {
    true; //Startet sofort
};

_init = {
	T1_Task = player createSimpleTask ["Kill"];
	T1_Task setTaskState "Assigned";
	"marker01" setMarkerAlpha 1;
	player createDiaryRecord ["Diary", ["Intel", "Kill The Enemy"]];
	hint "Kill the Enemy";
};

_initserver = {

};

_canComplete ={
	!alive badenemy;
};

_complete = {
	"winMarker" setMarkerAlpha 1;
	"marker01" setMarkerAlpha 0;
	T1_Task setTaskState "Succeeded";
	hint "Gut gemacht";
	player setpos [15200.9,17305,0];
};

_completeServer = {

};

_canFail = {
	false;
};

_failed = {

};

_failedServer = {

};



[_canInit,_init,_initserver,_canComplete,_complete,_completeServer,_canFail,_failed,_failedServer];
Clone this wiki locally