Jump to content
jstibbsy

CfgTaskDescriptions

Recommended Posts

I've searched the forums and google on how to use CfgTaskDescriptions but cannot find anything helpful. Does anyone know how to implement them with bis_fnc_createtask? (I need it for localising)
Cheers 

Share this post


Link to post
Share on other sites

Did you try to use bis_fnc_setStask  with classId referring  to the class you declared in cfgClasses?

[params, target, desc, (dest, state, priority, showNotification, isGlobal, type, shared)] call BIS_fnc_setTask

Share this post


Link to post
Share on other sites

Updated wiki page for both BIS_fnc_taskCreate and BIS_fnc_setTask to make the usage of CfgTaskDescriptions as the tasks description clearer.

Spoiler

//Description.ext

class CfgTaskDescriptions {
	class byName {
		title = "Task byName";
		description = "Task title, description and marker provided by CfgTaskDescriptions by using the config class name( byName )";
		marker = "";
	};
	class byTaskID {
		title = "Task byTaskID";
		description = "Task title, description and marker provided by CfgTaskDescriptions by using the taskID";
		marker = "";
	};
};

//initPlayerLocal.sqf

[
	west,
	"taskByName",
	"byName"	//Description set as CfgTaskDescriptions class name
] call BIS_fnc_taskCreate;

[
	west,
	"byTaskID",	//Task ID
	""		//Description must be an empty string, CfgTaskDescriptions searched for taskID
] call BIS_fnc_taskCreate;

 

See Lou Montana's note on BIS_fnc_taskCreate page about localisation.

Share this post


Link to post
Share on other sites
13 hours ago, stanhope said:

You have looked at both this and this page right?

I did look at them and for some reason it didn't work, I'll try again!
Cheers everyone, gonna give them a go. 

:)

Share this post


Link to post
Share on other sites

I got the desc.ext working and showing but for some reason it just spits out the strings like text, I made sure they weren't in speech marks or anything, did they remove string functionality? If so, does anyone know a way of localising tasks?
Cheers

Edit:
Nvm, forgot that the str at the start has to be capital.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×