Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_TaskCommandChatChannel.c
Go to the documentation of this file.
1//#ifdef WORKBENCH
2//[EntityEditorProps(category: "GameScripted/Channels", description: "Channel Manager", color: "0 0 255 255")]
3//class SCR_TaskCommandChatChannel : SCR_ChatChannel
4//{
5// [Attribute("task_create")]
6// protected string m_sCommandTaskCreate;
7//
8// [Attribute("task_delete")]
9// protected string m_sCommandTaskDelete;
10//
11// [Attribute("task_setState")]
12// protected string m_sCommandTaskSetState;
13//
14// [Attribute("task_setOwnership")]
15// protected string m_sCommandTaskSetOwnership;
16//
17// [Attribute("task_setVisibility")]
18// protected string m_sCommandTaskSetVisibility;
19//
20// [Attribute("task_setUIVisibility")]
21// protected string m_sCommandTaskSetUIVisibility;
22//
23// [Attribute("task_addFaction")]
24// protected string m_sCommandTaskAddFaction;
25//
26// [Attribute("task_removeFaction")]
27// protected string m_sCommandTaskRemoveFaction;
28//
29// [Attribute("task_addGroup")]
30// protected string m_sCommandTaskAddGroup;
31//
32// [Attribute("task_removeGroup")]
33// protected string m_sCommandTaskRemoveGroup;
34//
35// [Attribute("task_addExecutor")]
36// protected string m_sCommandTaskAddExecutor;
37//
38// [Attribute("task_removeExecutor")]
39// protected string m_sCommandTaskRemoveExecutor;
40//
41// [Attribute("task_assign")]
42// protected string m_sCommandTaskAssign;
43//
44// [Attribute("task_unassign")]
45// protected string m_sCommandTaskUnassign;
46//
47// [Attribute("task_move")]
48// protected string m_sCommandTaskMove;
49//
50// [Attribute("task_parent")]
51// protected string m_sCommandTaskParent;
52//
53// [Attribute("task_unparent")]
54// protected string m_sCommandTaskUnparent;
55//
56// [Attribute("task_showProgress")]
57// protected string m_sCommandTaskShowProgress;
58//
59// [Attribute("task_addProgress")]
60// protected string m_sCommandTaskAddProgress;
61//
62// [Attribute("task_removeProgress")]
63// protected string m_sCommandTaskRemoveProgress;
64//
65// [Attribute("task_list")]
66// protected string m_sCommandTaskDisplay;
67//
68// [Attribute("help")]
69// protected string m_sCommandHelp;
70//
71// [Attribute("{CF6A2A13DF7B1018}Prefabs/Tasks/ExtendedTask.et")]
72// protected ResourceName m_sTaskResource;
73//
74// protected const string COMMAND_KEYWORD_THIS = "this";
75// protected const string COMMAND_KEYWORD_NONE = "none";
76//
77// protected const string COMMAND_KEYWORD_TRUE = "true";
78// protected const string COMMAND_KEYWORD_FALSE = "false";
79//
80// protected const string COMMAND_KEYWORD_STATE_CREATED = "created";
81// protected const string COMMAND_KEYWORD_STATE_ASSIGNED = "assigned";
82// protected const string COMMAND_KEYWORD_STATE_PROGRESSED = "progressed";
83// protected const string COMMAND_KEYWORD_STATE_COMPLETED = "completed";
84// protected const string COMMAND_KEYWORD_STATE_FAILED = "failed";
85//
86// protected const string COMMAND_KEYWORD_OWNERSHIP_NONE = "none";
87// protected const string COMMAND_KEYWORD_OWNERSHIP_ENTITY = "entity";
88// protected const string COMMAND_KEYWORD_OWNERSHIP_GROUP = "group";
89// protected const string COMMAND_KEYWORD_OWNERSHIP_FACTION = "faction";
90// protected const string COMMAND_KEYWORD_OWNERSHIP_EVERYONE = "everyone";
91//
92// protected const string COMMAND_KEYWORD_VISIBILITY_NONE = "none";
93// protected const string COMMAND_KEYWORD_VISIBILITY_ENTITY = "entity";
94// protected const string COMMAND_KEYWORD_VISIBILITY_ASSIGNEES = "assignees";
95// protected const string COMMAND_KEYWORD_VISIBILITY_GROUP = "group";
96// protected const string COMMAND_KEYWORD_VISIBILITY_FACTION = "faction";
97// protected const string COMMAND_KEYWORD_VISIBILITY_EVERYONE = "everyone";
98//
99// protected const string COMMAND_KEYWORD_UIVISIBILITY_NONE = "none";
100// protected const string COMMAND_KEYWORD_UIVISIBILITY_MAP = "map";
101// protected const string COMMAND_KEYWORD_UIVISIBILITY_LIST = "list";
102// protected const string COMMAND_KEYWORD_UIVISIBILITY_ALL = "all";
103//
104// protected const string COMMAND_KEYWORD_TASKLIST_ALL = "all";
105//
106// //------------------------------------------------------------------------------------------------
107// override bool ProcessMessage(BaseChatComponent sender, string message, bool isAuthority)
108// {
109// if (message.Contains(m_sCommandTaskCreate))
110// {
111// ProcessCommand_TaskCreate(message);
112// return false;
113// }
114//
115// if (message.Contains(m_sCommandTaskDelete))
116// {
117// ProcessCommand_TaskDelete(message);
118// return false;
119// }
120//
121// if (message.Contains(m_sCommandTaskSetState))
122// {
123// ProcessCommand_TaskSetState(message);
124// return false;
125// }
126//
127// if (message.Contains(m_sCommandTaskSetOwnership))
128// {
129// ProcessCommand_TaskSetOwnership(message);
130// return false;
131// }
132//
133// if (message.Contains(m_sCommandTaskSetVisibility))
134// {
135// ProcessCommand_TaskSetVisibility(message);
136// return false;
137// }
138//
139// if (message.Contains(m_sCommandTaskSetUIVisibility))
140// {
141// ProcessCommand_TaskSetUIVisibility(message);
142// return false;
143// }
144//
145// if (message.Contains(m_sCommandTaskAddFaction))
146// {
147// ProcessCommand_TaskAddFaction(message);
148// return false;
149// }
150//
151// if (message.Contains(m_sCommandTaskRemoveFaction))
152// {
153// ProcessCommand_TaskRemoveFaction(message);
154// return false;
155// }
156//
157// if (message.Contains(m_sCommandTaskAddGroup))
158// {
159// ProcessCommand_TaskAddGroup(message);
160// return false;
161// }
162//
163// if (message.Contains(m_sCommandTaskRemoveGroup))
164// {
165// ProcessCommand_TaskRemoveGroup(message);
166// return false;
167// }
168//
169// if (message.Contains(m_sCommandTaskAddExecutor))
170// {
171// ProcessCommand_TaskAddExecutor(message);
172// return false;
173// }
174//
175// if (message.Contains(m_sCommandTaskRemoveExecutor))
176// {
177// ProcessCommand_TaskRemoveExecutor(message);
178// return false;
179// }
180//
181// if (message.Contains(m_sCommandTaskAssign))
182// {
183// ProcessCommand_TaskAssign(message);
184// return false;
185// }
186//
187// if (message.Contains(m_sCommandTaskUnassign))
188// {
189// ProcessCommand_TaskUnassign(message);
190// return false;
191// }
192//
193// if (message.Contains(m_sCommandTaskMove))
194// {
195// ProcessCommand_TaskMove(message);
196// return false;
197// }
198//
199// if (message.Contains(m_sCommandTaskParent))
200// {
201// ProcessCommand_TaskParent(message);
202// return false;
203// }
204//
205// if (message.Contains(m_sCommandTaskUnparent))
206// {
207// ProcessCommand_TaskUnparent(message);
208// return false;
209// }
210//
211// if (message.Contains(m_sCommandTaskShowProgress))
212// {
213// ProcessCommand_TaskShowProgress(message);
214// return false;
215// }
216//
217// if (message.Contains(m_sCommandTaskAddProgress))
218// {
219// ProcessCommand_TaskAddProgress(message);
220// return false;
221// }
222//
223// if (message.Contains(m_sCommandTaskRemoveProgress))
224// {
225// ProcessCommand_TaskRemoveProgress(message);
226// return false;
227// }
228//
229// if (message.Contains(m_sCommandTaskDisplay))
230// {
231// ProcessCommand_ShowTasks(message);
232// return false;
233// }
234//
235// if (message.Contains(m_sCommandHelp))
236// {
237// ProcessCommand_Help(message);
238// return false;
239// }
240//
241// Print("Console > Unknown command: " + message + " Type 'help' for a list of commands", LogLevel.ERROR);
242// return false;
243// }
244//
245// //------------------------------------------------------------------------------------------------
246// protected void ProcessCommand_TaskCreate(string command)
247// {
248// command.Replace(m_sCommandTaskCreate, "");
249//
250// array<string> params = {};
251// command.Split(" ", params, true);
252//
253// if (params.Count() < 6)
254// {
255// Print("Console > Invalid syntax for " + m_sCommandTaskCreate + ": <taskID> <task_Name> <task_Desc> <x> <y> <z>", LogLevel.ERROR);
256// return;
257// }
258//
259// foreach (string param : params)
260// {
261// if (param.IsEmpty())
262// {
263// Print("Console > Invalid syntax for " + m_sCommandTaskCreate + ": <taskID> <task_Name> <task_Desc> <x> <y> <z>", LogLevel.ERROR);
264// return;
265// }
266// }
267//
268// string taskID = params[0];
269//
270// string taskName = params[1];
271// taskName.Replace("_", " ");
272// string taskDesc = params[2];
273// taskDesc.Replace("_", " ");
274//
275// CameraBase currentCamera = GetGame().GetCameraManager().CurrentCamera();
276//
277// float taskPosX;
278// if (currentCamera && params[3] == COMMAND_KEYWORD_THIS)
279// taskPosX = currentCamera.GetOrigin()[0];
280// else
281// taskPosX = params[3].ToFloat();
282//
283// float taskPosY;
284// if (currentCamera && params[4] == COMMAND_KEYWORD_THIS)
285// taskPosY = currentCamera.GetOrigin()[1];
286// else
287// taskPosY = params[4].ToFloat();
288//
289// float taskPosZ;
290// if (currentCamera && params[5] == COMMAND_KEYWORD_THIS)
291// taskPosZ = currentCamera.GetOrigin()[2];
292// else
293// taskPosZ = params[5].ToFloat();
294//
295// vector taskPos = {taskPosX, taskPosY, taskPosZ};
296//
297// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
298// if (!taskSystem)
299// return;
300//
301// taskSystem.CreateTask(m_sTaskResource, taskID, taskName, taskDesc, taskPos);
302// }
303//
304// //------------------------------------------------------------------------------------------------
305// protected void ProcessCommand_TaskDelete(string command)
306// {
307// command.Replace(m_sCommandTaskDelete, "");
308//
309// array<string> params = {};
310// command.Split(" ", params, true);
311//
312// if (params.Count() < 1 || params[0].IsEmpty())
313// {
314// Print("Console > Invalid syntax for " + m_sCommandTaskDelete + ": <taskID>", LogLevel.ERROR);
315// return;
316// }
317//
318// string taskID = params[0];
319//
320// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
321// if (!taskSystem)
322// return;
323//
324// taskSystem.DeleteTask(taskSystem.GetTaskFromTaskID(taskID));
325// }
326//
327// //------------------------------------------------------------------------------------------------
328// protected void ProcessCommand_TaskSetState(string command)
329// {
330// command.Replace(m_sCommandTaskSetState, "");
331//
332// array<string> params = {};
333// command.Split(" ", params, true);
334//
335// if (params.Count() < 2)
336// {
337// Print("Console > Invalid syntax for " + m_sCommandTaskSetState + ": <taskID> <state>", LogLevel.ERROR);
338// return;
339// }
340//
341// foreach (string param : params)
342// {
343// if (param.IsEmpty())
344// {
345// Print("Console > Invalid syntax for " + m_sCommandTaskSetState + ": <taskID> <state>", LogLevel.ERROR);
346// return;
347// }
348// }
349//
350// string taskID = params[0];
351//
352// SCR_ETaskState taskState;
353// switch (params[1])
354// {
355// case COMMAND_KEYWORD_STATE_CREATED:
356// taskState = SCR_ETaskState.CREATED;
357// break;
358//
359// case COMMAND_KEYWORD_STATE_ASSIGNED:
360// taskState = SCR_ETaskState.ASSIGNED;
361// break;
362//
363// case COMMAND_KEYWORD_STATE_PROGRESSED:
364// taskState = SCR_ETaskState.PROGRESSED;
365// break;
366//
367// case COMMAND_KEYWORD_STATE_COMPLETED:
368// taskState = SCR_ETaskState.COMPLETED;
369// break;
370//
371// case COMMAND_KEYWORD_STATE_FAILED:
372// taskState = SCR_ETaskState.FAILED;
373// break;
374//
375// default:
376// Print("Console > Specified task state is invalid: <created, assigned, progressed, completed, failed>", LogLevel.ERROR);
377// return;
378// }
379//
380// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
381// if (!taskSystem)
382// return;
383//
384// taskSystem.SetTaskState(taskSystem.GetTaskFromTaskID(taskID), taskState);
385// }
386//
387// //------------------------------------------------------------------------------------------------
388// protected void ProcessCommand_TaskSetOwnership(string command)
389// {
390// command.Replace(m_sCommandTaskSetOwnership, "");
391//
392// array<string> params = {};
393// command.Split(" ", params, true);
394//
395// if (params.Count() < 2)
396// {
397// Print("Console > Invalid syntax for " + m_sCommandTaskSetOwnership + ": <taskID> <ownership>", LogLevel.ERROR);
398// return;
399// }
400//
401// foreach (string param : params)
402// {
403// if (param.IsEmpty())
404// {
405// Print("Console > Invalid syntax for " + m_sCommandTaskSetOwnership + ": <taskID> <ownership>", LogLevel.ERROR);
406// return;
407// }
408// }
409//
410// string taskID = params[0];
411//
412// SCR_ETaskOwnership taskOwnership;
413// switch (params[1])
414// {
415// case COMMAND_KEYWORD_OWNERSHIP_NONE:
416// taskOwnership = SCR_ETaskOwnership.NONE;
417// break;
418//
419// case COMMAND_KEYWORD_OWNERSHIP_ENTITY:
420// taskOwnership = SCR_ETaskOwnership.EXECUTOR;
421// break;
422//
423// case COMMAND_KEYWORD_OWNERSHIP_GROUP:
424// taskOwnership = SCR_ETaskOwnership.GROUP;
425// break;
426//
427// case COMMAND_KEYWORD_OWNERSHIP_FACTION:
428// taskOwnership = SCR_ETaskOwnership.FACTION;
429// break;
430//
431// case COMMAND_KEYWORD_OWNERSHIP_EVERYONE:
432// taskOwnership = SCR_ETaskOwnership.EVERYONE;
433// break;
434//
435// default:
436// Print("Console > Specified task ownership is invalid: <none, group, faction, everyone>", LogLevel.ERROR);
437// return;
438// }
439//
440// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
441// if (!taskSystem)
442// return;
443//
444// taskSystem.SetTaskOwnership(taskSystem.GetTaskFromTaskID(taskID), taskOwnership);
445// }
446//
447// //------------------------------------------------------------------------------------------------
448// protected void ProcessCommand_TaskSetVisibility(string command)
449// {
450// command.Replace(m_sCommandTaskSetVisibility, "");
451//
452// array<string> params = {};
453// command.Split(" ", params, true);
454//
455// if (params.Count() < 2)
456// {
457// Print("Console > Invalid syntax for " + m_sCommandTaskSetVisibility + ": <taskID> <visibility>", LogLevel.ERROR);
458// return;
459// }
460//
461// foreach (string param : params)
462// {
463// if (param.IsEmpty())
464// {
465// Print("Console > Invalid syntax for " + m_sCommandTaskSetVisibility + ": <taskID> <visibility>", LogLevel.ERROR);
466// return;
467// }
468// }
469//
470// string taskID = params[0];
471//
472// SCR_ETaskVisibility taskVisibility;
473// switch (params[1])
474// {
475// case COMMAND_KEYWORD_VISIBILITY_NONE:
476// taskVisibility = SCR_ETaskVisibility.NONE;
477// break;
478//
479// case COMMAND_KEYWORD_VISIBILITY_ENTITY:
480// taskVisibility = SCR_ETaskVisibility.EXECUTOR;
481// break;
482//
483// case COMMAND_KEYWORD_VISIBILITY_ASSIGNEES:
484// taskVisibility = SCR_ETaskVisibility.ASSIGNEES;
485// break;
486//
487// case COMMAND_KEYWORD_VISIBILITY_GROUP:
488// taskVisibility = SCR_ETaskVisibility.GROUP;
489// break;
490//
491// case COMMAND_KEYWORD_VISIBILITY_FACTION:
492// taskVisibility = SCR_ETaskVisibility.FACTION;
493// break;
494//
495// case COMMAND_KEYWORD_VISIBILITY_EVERYONE:
496// taskVisibility = SCR_ETaskVisibility.EVERYONE;
497// break;
498//
499// default:
500// Print("Console > Specified task visibility is invalid: <none, assignee, group, faction, everyone>", LogLevel.ERROR);
501// return;
502// }
503//
504// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
505// if (!taskSystem)
506// return;
507//
508// taskSystem.SetTaskVisibility(taskSystem.GetTaskFromTaskID(taskID), taskVisibility);
509// }
510//
511// //------------------------------------------------------------------------------------------------
512// protected void ProcessCommand_TaskSetUIVisibility(string command)
513// {
514// command.Replace(m_sCommandTaskSetUIVisibility, "");
515//
516// array<string> params = {};
517// command.Split(" ", params, true);
518//
519// if (params.Count() < 2)
520// {
521// Print("Console > Invalid syntax for " + m_sCommandTaskSetUIVisibility + ": <taskID> <visibility>", LogLevel.ERROR);
522// return;
523// }
524//
525// foreach (string param : params)
526// {
527// if (param.IsEmpty())
528// {
529// Print("Console > Invalid syntax for " + m_sCommandTaskSetUIVisibility + ": <taskID> <visibility>", LogLevel.ERROR);
530// return;
531// }
532// }
533//
534// string taskID = params[0];
535//
536// SCR_ETaskUIVisibility taskVisibility;
537// switch (params[1])
538// {
539// case COMMAND_KEYWORD_UIVISIBILITY_NONE:
540// taskVisibility = SCR_ETaskUIVisibility.NONE;
541// break;
542//
543// case COMMAND_KEYWORD_UIVISIBILITY_MAP:
544// taskVisibility = SCR_ETaskUIVisibility.MAP_ONLY;
545// break;
546//
547// case COMMAND_KEYWORD_UIVISIBILITY_LIST:
548// taskVisibility = SCR_ETaskUIVisibility.LIST_ONLY;
549// break;
550//
551// case COMMAND_KEYWORD_UIVISIBILITY_ALL:
552// taskVisibility = SCR_ETaskUIVisibility.ALL;
553// break;
554//
555// default:
556// Print("Console > Specified task UI visibility is invalid: <none, map, list, all>", LogLevel.ERROR);
557// return;
558// }
559//
560// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
561// if (!taskSystem)
562// return;
563//
564// taskSystem.SetTaskUIVisibility(taskSystem.GetTaskFromTaskID(taskID), taskVisibility);
565// }
566//
567// //------------------------------------------------------------------------------------------------
568// protected void ProcessCommand_TaskAddFaction(string command)
569// {
570// command.Replace(m_sCommandTaskAddFaction, "");
571//
572// array<string> params = {};
573// command.Split(" ", params, true);
574//
575// if (params.Count() < 2)
576// {
577// Print("Console > Invalid syntax for " + m_sCommandTaskAddFaction + ": <taskID> <factionKey>", LogLevel.ERROR);
578// return;
579// }
580//
581// foreach (string param : params)
582// {
583// if (param.IsEmpty())
584// {
585// Print("Console > Invalid syntax for " + m_sCommandTaskAddFaction + ": <taskID> <factionKey>", LogLevel.ERROR);
586// return;
587// }
588// }
589//
590// string taskID = params[0];
591// string taskFactionKey = params[1];
592// switch (taskFactionKey)
593// {
594// case COMMAND_KEYWORD_THIS:
595// FactionAffiliationComponent factionAffiliation = FactionAffiliationComponent.Cast(GetGame().GetPlayerController().GetControlledEntity().FindComponent(FactionAffiliationComponent));
596// if (!factionAffiliation)
597// {
598// taskFactionKey = string.Empty;
599// break;
600// }
601//
602// taskFactionKey = factionAffiliation.GetAffiliatedFactionKey();
603// break;
604// }
605//
606// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
607// if (!taskSystem)
608// return;
609//
610// taskSystem.AddTaskFaction(taskSystem.GetTaskFromTaskID(taskID), taskFactionKey);
611// }
612//
613// //------------------------------------------------------------------------------------------------
614// protected void ProcessCommand_TaskRemoveFaction(string command)
615// {
616// command.Replace(m_sCommandTaskRemoveFaction, "");
617//
618// array<string> params = {};
619// command.Split(" ", params, true);
620//
621// if (params.Count() < 2)
622// {
623// Print("Console > Invalid syntax for " + m_sCommandTaskRemoveFaction + ": <taskID> <factionKey>", LogLevel.ERROR);
624// return;
625// }
626//
627// foreach (string param : params)
628// {
629// if (param.IsEmpty())
630// {
631// Print("Console > Invalid syntax for " + m_sCommandTaskRemoveFaction + ": <taskID> <factionKey>", LogLevel.ERROR);
632// return;
633// }
634// }
635//
636// string taskID = params[0];
637// string taskFactionKey = params[1];
638// switch (taskFactionKey)
639// {
640// case COMMAND_KEYWORD_THIS:
641// FactionAffiliationComponent factionAffiliation = FactionAffiliationComponent.Cast(GetGame().GetPlayerController().GetControlledEntity().FindComponent(FactionAffiliationComponent));
642// if (!factionAffiliation)
643// {
644// taskFactionKey = string.Empty;
645// break;
646// }
647//
648// taskFactionKey = factionAffiliation.GetAffiliatedFactionKey();
649// break;
650// }
651//
652// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
653// if (!taskSystem)
654// return;
655//
656// taskSystem.RemoveTaskFaction(taskSystem.GetTaskFromTaskID(taskID), taskFactionKey);
657// }
658//
659// //------------------------------------------------------------------------------------------------
660// protected void ProcessCommand_TaskAddGroup(string command)
661// {
662// command.Replace(m_sCommandTaskAddGroup, "");
663//
664// array<string> params = {};
665// command.Split(" ", params, true);
666//
667// if (params.Count() < 2)
668// {
669// Print("Console > Invalid syntax for " + m_sCommandTaskAddGroup + ": <taskID> <groupID>", LogLevel.ERROR);
670// return;
671// }
672//
673// foreach (string param : params)
674// {
675// if (param.IsEmpty())
676// {
677// Print("Console > Invalid syntax for " + m_sCommandTaskAddGroup + ": <taskID> <groupID>", LogLevel.ERROR);
678// return;
679// }
680// }
681//
682// string taskID = params[0];
683// string taskGroupID = params[1];
684// switch (taskGroupID)
685// {
686// case COMMAND_KEYWORD_THIS:
687// SCR_PlayerControllerGroupComponent groupComponent = SCR_PlayerControllerGroupComponent.Cast(GetGame().GetPlayerController().FindComponent(SCR_PlayerControllerGroupComponent));
688// if (!groupComponent)
689// {
690// taskGroupID = "-1";
691// break;
692// }
693//
694// taskGroupID = groupComponent.GetGroupID().ToString();
695// break;
696// }
697//
698// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
699// if (!taskSystem)
700// return;
701//
702// taskSystem.AddTaskGroup(taskSystem.GetTaskFromTaskID(taskID), taskGroupID.ToInt());
703// }
704//
705// //------------------------------------------------------------------------------------------------
706// protected void ProcessCommand_TaskRemoveGroup(string command)
707// {
708// command.Replace(m_sCommandTaskRemoveGroup, "");
709//
710// array<string> params = {};
711// command.Split(" ", params, true);
712//
713// if (params.Count() < 2)
714// {
715// Print("Console > Invalid syntax for " + m_sCommandTaskRemoveGroup + ": <taskID> <groupID>", LogLevel.ERROR);
716// return;
717// }
718//
719// foreach (string param : params)
720// {
721// if (param.IsEmpty())
722// {
723// Print("Console > Invalid syntax for " + m_sCommandTaskRemoveGroup + ": <taskID> <groupID>", LogLevel.ERROR);
724// return;
725// }
726// }
727//
728// string taskID = params[0];
729// string taskGroupID = params[1];
730// switch (taskGroupID)
731// {
732// case COMMAND_KEYWORD_THIS:
733// SCR_PlayerControllerGroupComponent groupComponent = SCR_PlayerControllerGroupComponent.Cast(GetGame().GetPlayerController().FindComponent(SCR_PlayerControllerGroupComponent));
734// if (!groupComponent)
735// {
736// taskGroupID = "-1";
737// break;
738// }
739//
740// taskGroupID = groupComponent.GetGroupID().ToString();
741// break;
742// }
743//
744// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
745// if (!taskSystem)
746// return;
747//
748// taskSystem.RemoveTaskGroup(taskSystem.GetTaskFromTaskID(taskID), taskGroupID.ToInt());
749// }
750//
751// //------------------------------------------------------------------------------------------------
752// protected void ProcessCommand_TaskAddExecutor(string command)
753// {
754// command.Replace(m_sCommandTaskAddExecutor, "");
755//
756// array<string> params = {};
757// command.Split(" ", params, true);
758//
759// if (params.Count() < 2)
760// {
761// Print("Console > Invalid syntax for " + m_sCommandTaskAddExecutor + ": <taskID> <playerID/entityID/groupID>", LogLevel.ERROR);
762// return;
763// }
764//
765// foreach (string param : params)
766// {
767// if (param.IsEmpty())
768// {
769// Print("Console > Invalid syntax for " + m_sCommandTaskAddExecutor + ": <taskID> <playerID/entityID/groupID>", LogLevel.ERROR);
770// return;
771// }
772// }
773//
774// string taskID = params[0];
775//
776// SCR_TaskExecutor executor;
777// if (params[1] == COMMAND_KEYWORD_THIS)
778// {
779// int playerID = GetGame().GetPlayerController().GetPlayerId();
780// executor = SCR_TaskExecutor.FromPlayerID(playerID);
781// }
782// else if (params[1].ToInt() > 0)
783// {
784// int playerID = params[1].ToInt();
785// executor = SCR_TaskExecutor.FromPlayerID(playerID);
786// }
787// else if (params[1].Contains("g:") && params[1].Substring(2, params[1].Length() - 2).ToInt() > -1)
788// {
789// int groupID = params[1].Substring(2, params[1].Length() - 2).ToInt();
790// executor = SCR_TaskExecutor.FromGroup(groupID);
791// }
792// else
793// {
794// IEntity ent = GetGame().FindEntity(params[1]);
795// executor = SCR_TaskExecutor.FromEntity(ent);
796// }
797//
798// if (!executor)
799// {
800// Print("Console > Could not find entity with name: " + params[1], LogLevel.ERROR);
801// return;
802// }
803//
804// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
805// if (!taskSystem)
806// return;
807//
808// taskSystem.AddTaskExecutor(taskSystem.GetTaskFromTaskID(taskID), executor);
809// }
810//
811// //------------------------------------------------------------------------------------------------
812// protected void ProcessCommand_TaskRemoveExecutor(string command)
813// {
814// command.Replace(m_sCommandTaskRemoveExecutor, "");
815//
816// array<string> params = {};
817// command.Split(" ", params, true);
818//
819// if (params.Count() < 2)
820// {
821// Print("Console > Invalid syntax for " + m_sCommandTaskRemoveExecutor + ": <taskID> <playerID/entityID/groupID>", LogLevel.ERROR);
822// return;
823// }
824//
825// foreach (string param : params)
826// {
827// if (param.IsEmpty())
828// {
829// Print("Console > Invalid syntax for " + m_sCommandTaskRemoveExecutor + ": <taskID> <playerID/entityID/groupID>", LogLevel.ERROR);
830// return;
831// }
832// }
833//
834// string taskID = params[0];
835//
836// SCR_TaskExecutor executor;
837// if (params[1] == COMMAND_KEYWORD_THIS)
838// {
839// int playerID = GetGame().GetPlayerController().GetPlayerId();
840// executor = SCR_TaskExecutor.FromPlayerID(playerID);
841// }
842// else if (params[1].ToInt() > 0)
843// {
844// int playerID = params[1].ToInt();
845// executor = SCR_TaskExecutor.FromPlayerID(playerID);
846// }
847// else if (params[1].Contains("g:") && params[1].Substring(2, params[1].Length() - 2).ToInt() > -1)
848// {
849// int groupID = params[1].Substring(2, params[1].Length() - 2).ToInt();
850// executor = SCR_TaskExecutor.FromGroup(groupID);
851// }
852// else
853// {
854// IEntity ent = GetGame().FindEntity(params[1]);
855// executor = SCR_TaskExecutor.FromEntity(ent);
856// }
857//
858// if (!executor)
859// {
860// Print("Console > Could not find entity with name: " + params[1], LogLevel.ERROR);
861// return;
862// }
863//
864// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
865// if (!taskSystem)
866// return;
867//
868// taskSystem.RemoveTaskExecutor(taskSystem.GetTaskFromTaskID(taskID), executor);
869// }
870//
871// //------------------------------------------------------------------------------------------------
872// protected void ProcessCommand_TaskAssign(string command)
873// {
874// command.Replace(m_sCommandTaskAssign, "");
875//
876// array<string> params = {};
877// command.Split(" ", params, true);
878//
879// if (params.Count() < 2)
880// {
881// Print("Console > Invalid syntax for " + m_sCommandTaskAssign + ": <taskID> <playerID/entityID/groupID> <force>", LogLevel.ERROR);
882// return;
883// }
884//
885// foreach (string param : params)
886// {
887// if (param.IsEmpty())
888// {
889// Print("Console > Invalid syntax for " + m_sCommandTaskAssign + ": <taskID> <playerID/entityID/groupID> <force>", LogLevel.ERROR);
890// return;
891// }
892// }
893//
894// string taskID = params[0];
895//
896// SCR_TaskExecutor assignee;
897// if (params[1] == COMMAND_KEYWORD_THIS)
898// {
899// int playerID = GetGame().GetPlayerController().GetPlayerId();
900// assignee = SCR_TaskExecutor.FromPlayerID(playerID);
901// }
902// else if (params[1].ToInt() > 0)
903// {
904// int playerID = params[1].ToInt();
905// assignee = SCR_TaskExecutor.FromPlayerID(playerID);
906// }
907// else if (params[1].Contains("g:") && params[1].Substring(2, params[1].Length() - 2).ToInt() > -1)
908// {
909// int groupID = params[1].Substring(2, params[1].Length() - 2).ToInt();
910// assignee = SCR_TaskExecutor.FromGroup(groupID);
911// }
912// else
913// {
914// IEntity ent = GetGame().FindEntity(params[1]);
915// assignee = SCR_TaskExecutor.FromEntity(ent);
916// }
917//
918// if (!assignee)
919// {
920// Print("Console > Could not find entity with name: " + params[1], LogLevel.ERROR);
921// return;
922// }
923//
924// bool force;
925// if (params.Count() >= 3)
926// {
927// if (params[2] == COMMAND_KEYWORD_TRUE)
928// {
929// force = true;
930// }
931// else if (params[2] == COMMAND_KEYWORD_FALSE)
932// {
933// force = false;
934// }
935// else
936// {
937// Print("Console > Specified keyword is invalid: <true, false>", LogLevel.ERROR);
938// return;
939// }
940// }
941//
942// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
943// if (!taskSystem)
944// return;
945//
946// taskSystem.AssignTask(taskSystem.GetTaskFromTaskID(taskID), assignee, force);
947// }
948//
949// //------------------------------------------------------------------------------------------------
950// protected void ProcessCommand_TaskUnassign(string command)
951// {
952// command.Replace(m_sCommandTaskUnassign, "");
953//
954// array<string> params = {};
955// command.Split(" ", params, true);
956//
957// if (params.Count() < 2)
958// {
959// Print("Console > Invalid syntax for " + m_sCommandTaskUnassign + ": <taskID> <playerID/entityID/groupID>", LogLevel.ERROR);
960// return;
961// }
962//
963// foreach (string param : params)
964// {
965// if (param.IsEmpty())
966// {
967// Print("Console > Invalid syntax for " + m_sCommandTaskUnassign + ": <taskID> <playerID/entityID/groupID>", LogLevel.ERROR);
968// return;
969// }
970// }
971//
972// string taskID = params[0];
973//
974// SCR_TaskExecutor assignee;
975// if (params[1] == COMMAND_KEYWORD_THIS)
976// {
977// int playerID = GetGame().GetPlayerController().GetPlayerId();
978// assignee = SCR_TaskExecutor.FromPlayerID(playerID);
979// }
980// else if (params[1].ToInt() > 0)
981// {
982// int playerID = params[1].ToInt();
983// assignee = SCR_TaskExecutor.FromPlayerID(playerID);
984// }
985// else if (params[1].Contains("g:") && params[1].Substring(2, params[1].Length() - 2).ToInt() > -1)
986// {
987// int groupID = params[1].Substring(2, params[1].Length() - 2).ToInt();
988// assignee = SCR_TaskExecutor.FromGroup(groupID);
989// }
990// else
991// {
992// IEntity ent = GetGame().FindEntity(params[1]);
993// assignee = SCR_TaskExecutor.FromEntity(ent);
994// }
995//
996// if (!assignee)
997// {
998// Print("Console > Could not find entity with name: " + params[1], LogLevel.ERROR);
999// return;
1000// }
1001//
1002// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
1003// if (!taskSystem)
1004// return;
1005//
1006// taskSystem.UnassignTask(taskSystem.GetTaskFromTaskID(taskID), assignee);
1007// }
1008//
1009// //------------------------------------------------------------------------------------------------
1010// protected void ProcessCommand_TaskMove(string command)
1011// {
1012// command.Replace(m_sCommandTaskMove, "");
1013//
1014// array<string> params = {};
1015// command.Split(" ", params, true);
1016//
1017// if (params.Count() < 4)
1018// {
1019// Print("Console > Invalid syntax for " + m_sCommandTaskMove + ": <taskID> <x> <y> <z>", LogLevel.ERROR);
1020// return;
1021// }
1022//
1023// foreach (string param : params)
1024// {
1025// if (param.IsEmpty())
1026// {
1027// Print("Console > Invalid syntax for " + m_sCommandTaskMove + ": <taskID> <x> <y> <z>", LogLevel.ERROR);
1028// return;
1029// }
1030// }
1031//
1032// string taskID = params[0];
1033//
1034// CameraBase currentCamera = GetGame().GetCameraManager().CurrentCamera();
1035//
1036// float taskPosX;
1037// if (currentCamera && params[1] == COMMAND_KEYWORD_THIS)
1038// taskPosX = currentCamera.GetOrigin()[0];
1039// else
1040// taskPosX = params[1].ToFloat();
1041//
1042// float taskPosY;
1043// if (currentCamera && params[2] == COMMAND_KEYWORD_THIS)
1044// taskPosY = currentCamera.GetOrigin()[1];
1045// else
1046// taskPosY = params[2].ToFloat();
1047//
1048// float taskPosZ;
1049// if (currentCamera && params[3] == COMMAND_KEYWORD_THIS)
1050// taskPosZ = currentCamera.GetOrigin()[2];
1051// else
1052// taskPosZ = params[3].ToFloat();
1053//
1054// vector taskPos = {taskPosX, taskPosY, taskPosZ};
1055//
1056// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
1057// if (!taskSystem)
1058// return;
1059//
1060// taskSystem.MoveTask(taskSystem.GetTaskFromTaskID(taskID), taskPos);
1061// }
1062//
1063// //------------------------------------------------------------------------------------------------
1064// protected void ProcessCommand_TaskParent(string command)
1065// {
1066// command.Replace(m_sCommandTaskParent, "");
1067//
1068// array<string> params = {};
1069// command.Split(" ", params, true);
1070//
1071// if (params.Count() < 2)
1072// {
1073// Print("Console > Invalid syntax for " + m_sCommandTaskParent + ": <childTaskID> <taskID>", LogLevel.ERROR);
1074// return;
1075// }
1076//
1077// foreach (string param : params)
1078// {
1079// if (param.IsEmpty())
1080// {
1081// Print("Console > Invalid syntax for " + m_sCommandTaskParent + ": <childTaskID> <taskID>", LogLevel.ERROR);
1082// return;
1083// }
1084// }
1085//
1086// string childTaskID = params[0];
1087// string taskID = params[1];
1088//
1089// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
1090// if (!taskSystem)
1091// return;
1092//
1093// taskSystem.AddChildTaskTo(taskSystem.GetTaskFromTaskID(taskID), taskSystem.GetTaskFromTaskID(childTaskID));
1094// }
1095//
1096// //------------------------------------------------------------------------------------------------
1097// protected void ProcessCommand_TaskUnparent(string command)
1098// {
1099// command.Replace(m_sCommandTaskUnparent, "");
1100//
1101// array<string> params = {};
1102// command.Split(" ", params, true);
1103//
1104// if (params.Count() < 2)
1105// {
1106// Print("Console > Invalid syntax for " + m_sCommandTaskUnparent + ": <childTaskID> <taskID>", LogLevel.ERROR);
1107// return;
1108// }
1109//
1110// foreach (string param : params)
1111// {
1112// if (param.IsEmpty())
1113// {
1114// Print("Console > Invalid syntax for " + m_sCommandTaskUnparent + ": <childTaskID> <taskID>", LogLevel.ERROR);
1115// return;
1116// }
1117// }
1118//
1119// string childTaskID = params[0];
1120// string taskID = params[1];
1121//
1122// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
1123// if (!taskSystem)
1124// return;
1125//
1126// taskSystem.RemoveChildTaskFrom(taskSystem.GetTaskFromTaskID(taskID), taskSystem.GetTaskFromTaskID(childTaskID));
1127// }
1128//
1129// //------------------------------------------------------------------------------------------------
1130// protected void ProcessCommand_TaskShowProgress(string command)
1131// {
1132// command.Replace(m_sCommandTaskShowProgress, "");
1133//
1134// array<string> params = {};
1135// command.Split(" ", params, true);
1136//
1137// if (params.Count() < 2)
1138// {
1139// Print("Console > Invalid syntax for " + m_sCommandTaskShowProgress + ": <taskID> <enable>", LogLevel.ERROR);
1140// return;
1141// }
1142//
1143// foreach (string param : params)
1144// {
1145// if (param.IsEmpty())
1146// {
1147// Print("Console > Invalid syntax for " + m_sCommandTaskShowProgress + ": <taskID> <enable>", LogLevel.ERROR);
1148// return;
1149// }
1150// }
1151//
1152// string taskID = params[0];
1153//
1154// bool enable;
1155// if (params[1] == COMMAND_KEYWORD_TRUE)
1156// {
1157// enable = true;
1158// }
1159// else if (params[1] == COMMAND_KEYWORD_FALSE)
1160// {
1161// enable = false;
1162// }
1163// else
1164// {
1165// Print("Console > Specified keyword is invalid: <true, false>", LogLevel.ERROR);
1166// return;
1167// }
1168//
1169// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
1170// if (!taskSystem)
1171// return;
1172//
1173// taskSystem.ShowProgressForTask(taskSystem.GetTaskFromTaskID(taskID), enable);
1174// }
1175//
1176// //------------------------------------------------------------------------------------------------
1177// protected void ProcessCommand_TaskAddProgress(string command)
1178// {
1179// command.Replace(m_sCommandTaskAddProgress, "");
1180//
1181// array<string> params = {};
1182// command.Split(" ", params, true);
1183//
1184// if (params.Count() < 2)
1185// {
1186// Print("Console > Invalid syntax for " + m_sCommandTaskAddProgress + ": <taskID> <progress>", LogLevel.ERROR);
1187// return;
1188// }
1189//
1190// foreach (string param : params)
1191// {
1192// if (param.IsEmpty())
1193// {
1194// Print("Console > Invalid syntax for " + m_sCommandTaskAddProgress + ": <taskID> <progress>", LogLevel.ERROR);
1195// return;
1196// }
1197// }
1198//
1199// string taskID = params[0];
1200// string progress = params[1];
1201//
1202// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
1203// if (!taskSystem)
1204// return;
1205//
1206// taskSystem.AddTaskProgress(taskSystem.GetTaskFromTaskID(taskID), progress.ToFloat());
1207// }
1208//
1209// //------------------------------------------------------------------------------------------------
1210// protected void ProcessCommand_TaskRemoveProgress(string command)
1211// {
1212// command.Replace(m_sCommandTaskRemoveProgress, "");
1213//
1214// array<string> params = {};
1215// command.Split(" ", params, true);
1216//
1217// if (params.Count() < 2)
1218// {
1219// Print("Console > Invalid syntax for " + m_sCommandTaskRemoveProgress + ": <taskID> <progress>", LogLevel.ERROR);
1220// return;
1221// }
1222//
1223// foreach (string param : params)
1224// {
1225// if (param.IsEmpty())
1226// {
1227// Print("Console > Invalid syntax for " + m_sCommandTaskRemoveProgress + ": <taskID> <progress>", LogLevel.ERROR);
1228// return;
1229// }
1230// }
1231//
1232// string taskID = params[0];
1233// string progress = params[1];
1234//
1235// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
1236// if (!taskSystem)
1237// return;
1238//
1239// taskSystem.RemoveTaskProgress(taskSystem.GetTaskFromTaskID(taskID), progress.ToFloat());
1240// }
1241//
1242// //------------------------------------------------------------------------------------------------
1243// protected void ProcessCommand_ShowTasks(string command)
1244// {
1245// command.Replace(m_sCommandTaskDisplay, "");
1246//
1247// array<string> params = {};
1248// command.Split(" ", params, true);
1249//
1250// if (params.Count() < 1)
1251// {
1252// Print("Console > Invalid syntax for " + m_sCommandTaskDisplay + ": <playerID/entityID>", LogLevel.ERROR);
1253// return;
1254// }
1255//
1256// if (params[0].IsEmpty())
1257// {
1258// Print("Console > Invalid syntax for " + m_sCommandTaskDisplay + ": <playerID/entityID>", LogLevel.ERROR);
1259// return;
1260// }
1261//
1262// SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
1263// if (!taskSystem)
1264// return;
1265//
1266// if (params[0] == COMMAND_KEYWORD_TASKLIST_ALL)
1267// {
1268// taskSystem.PrintTasks();
1269// return;
1270// }
1271//
1272// SCR_TaskExecutor executor;
1273// if (params[0] == COMMAND_KEYWORD_THIS)
1274// {
1275// int playerID = GetGame().GetPlayerController().GetPlayerId();
1276// executor = SCR_TaskExecutor.FromPlayerID(playerID);
1277// }
1278// else if (params[0].ToInt() > 0)
1279// {
1280// int playerID = params[0].ToInt();
1281// executor = SCR_TaskExecutor.FromPlayerID(playerID);
1282// }
1283// else
1284// {
1285// IEntity ent = GetGame().FindEntity(params[0]);
1286// executor = SCR_TaskExecutor.FromEntity(ent);
1287// }
1288//
1289// if (!executor)
1290// {
1291// Print("Console > Could not find entity with name: " + params[0], LogLevel.ERROR);
1292// return;
1293// }
1294//
1295// taskSystem.PrintTasks(executor);
1296// }
1297//
1298// //------------------------------------------------------------------------------------------------
1299// protected void ProcessCommand_Help(string command)
1300// {
1301// Print("\n", LogLevel.NORMAL);
1302//
1303// Print("Console > Syntax for " + m_sCommandTaskCreate + ": <taskID> <task_Name> <task_Desc> <x> <y> <z>", LogLevel.NORMAL);
1304// Print("Example: task_create move0 Move move_to_location this 0 this", LogLevel.DEBUG);
1305// Print("\n", LogLevel.NORMAL);
1306//
1307// Print("Console > Syntax for " + m_sCommandTaskDelete + ": <taskID>", LogLevel.NORMAL);
1308// Print("Example: task_delete move0", LogLevel.DEBUG);
1309// Print("\n", LogLevel.NORMAL);
1310//
1311// Print("Console > Syntax for " + m_sCommandTaskSetState + ": <taskID> <state>", LogLevel.NORMAL);
1312// Print("Example: task_setState move0 completed", LogLevel.DEBUG);
1313// Print("\n", LogLevel.NORMAL);
1314//
1315// Print("Console > Syntax for " + m_sCommandTaskSetOwnership + ": <taskID> <ownership>", LogLevel.NORMAL);
1316// Print("Example: task_setOwnership move0 group", LogLevel.DEBUG);
1317// Print("\n", LogLevel.NORMAL);
1318//
1319// Print("Console > Syntax for " + m_sCommandTaskSetVisibility + ": <taskID> <visibility>", LogLevel.NORMAL);
1320// Print("Example: task_setVisibility move0 group", LogLevel.DEBUG);
1321// Print("\n", LogLevel.NORMAL);
1322//
1323// Print("Console > Syntax for " + m_sCommandTaskSetUIVisibility + ": <taskID> <visibility>", LogLevel.NORMAL);
1324// Print("Example: task_setUIVisibility move0 map", LogLevel.DEBUG);
1325// Print("\n", LogLevel.NORMAL);
1326//
1327// Print("Console > Syntax for " + m_sCommandTaskAddFaction + ": <taskID> <factionKey>", LogLevel.NORMAL);
1328// Print("Example: task_addFaction move0 USSR", LogLevel.DEBUG);
1329// Print("\n", LogLevel.NORMAL);
1330//
1331// Print("Console > Syntax for " + m_sCommandTaskRemoveFaction + ": <taskID> <factionKey>", LogLevel.NORMAL);
1332// Print("Example: task_removeFaction move0 USSR", LogLevel.DEBUG);
1333// Print("\n", LogLevel.NORMAL);
1334//
1335// Print("Console > Syntax for " + m_sCommandTaskAddGroup + ": <taskID> <groupID>", LogLevel.NORMAL);
1336// Print("Example: task_addGroup move0 this", LogLevel.DEBUG);
1337// Print("\n", LogLevel.NORMAL);
1338//
1339// Print("Console > Syntax for " + m_sCommandTaskRemoveGroup + ": <taskID> <groupID>", LogLevel.NORMAL);
1340// Print("Example: task_removeGroup move0 this", LogLevel.DEBUG);
1341// Print("\n", LogLevel.NORMAL);
1342//
1343// Print("Console > Syntax for " + m_sCommandTaskAddExecutor + ": <taskID> <playerID/entityID/groupID>", LogLevel.NORMAL);
1344// Print("Example: task_addExecutor move0 this", LogLevel.DEBUG);
1345// Print("\n", LogLevel.NORMAL);
1346//
1347// Print("Console > Syntax for " + m_sCommandTaskRemoveExecutor + ": <taskID> <playerID/entityID/groupID>", LogLevel.NORMAL);
1348// Print("Example: task_removeExecutor move0 this", LogLevel.DEBUG);
1349// Print("\n", LogLevel.NORMAL);
1350//
1351// Print("Console > Syntax for " + m_sCommandTaskAssign + ": <taskID> <playerID/entityID/groupID> <force>", LogLevel.NORMAL);
1352// Print("Example: task_assign move0 this true", LogLevel.DEBUG);
1353// Print("\n", LogLevel.NORMAL);
1354//
1355// Print("Console > Syntax for " + m_sCommandTaskUnassign + ": <taskID> <playerID/entityID/groupID>", LogLevel.NORMAL);
1356// Print("Example: task_unassign move0 this", LogLevel.DEBUG);
1357// Print("\n", LogLevel.NORMAL);
1358//
1359// Print("Console > Syntax for " + m_sCommandTaskMove + ": <taskID> <x> <y> <z>", LogLevel.NORMAL);
1360// Print("Example: task_move move0 100 this 20.5", LogLevel.DEBUG);
1361// Print("\n", LogLevel.NORMAL);
1362//
1363// Print("Console > Syntax for " + m_sCommandTaskParent + ": <childTaskID> <taskID>", LogLevel.NORMAL);
1364// Print("Example: task_parent move1 move2", LogLevel.DEBUG);
1365// Print("\n", LogLevel.NORMAL);
1366//
1367// Print("Console > Syntax for " + m_sCommandTaskUnparent + ": <childTaskID> <taskID>", LogLevel.NORMAL);
1368// Print("Example: task_unparent move1 move2", LogLevel.DEBUG);
1369// Print("\n", LogLevel.NORMAL);
1370//
1371// Print("Console > Syntax for " + m_sCommandTaskShowProgress + ": <taskID> <enable>", LogLevel.NORMAL);
1372// Print("Example: task_showProgress move0 true", LogLevel.DEBUG);
1373// Print("\n", LogLevel.NORMAL);
1374//
1375// Print("Console > Syntax for " + m_sCommandTaskAddProgress + ": <taskID> <progress>", LogLevel.NORMAL);
1376// Print("Example: task_addProgress move0 50", LogLevel.DEBUG);
1377// Print("\n", LogLevel.NORMAL);
1378//
1379// Print("Console > Syntax for " + m_sCommandTaskRemoveProgress + ": <taskID> <progress>", LogLevel.NORMAL);
1380// Print("Example: task_removeProgress move0 50", LogLevel.DEBUG);
1381// Print("\n", LogLevel.NORMAL);
1382//
1383// Print("Console > Syntax for " + m_sCommandTaskDisplay + ": <playerID/entityID>", LogLevel.NORMAL);
1384// Print("Example: task_list all", LogLevel.DEBUG);
1385// Print("\n", LogLevel.NORMAL);
1386//
1387// Print("Console > Keyword 'this': Points to relevant data related to the player executing the command", LogLevel.NORMAL);
1388// Print("Console > Keyword 'none': Sets data to null; Can only be used with <factionKey/groupID> parameter", LogLevel.NORMAL);
1389//
1390// Print("Console > Keyword 'created/assigned/progressed/completed/failed': Sets task state to CREATED/ASSIGNED/PROGRESSED/COMPLETED/FAILED; Can only be used with <state> parameter", LogLevel.NORMAL);
1391// Print("Console > Keyword 'none/entity/group/faction/everyone': Sets task ownership to NONE/ENTITY/GROUP/FACTION/EVERYONE; Can only be used with <ownership> parameter", LogLevel.NORMAL);
1392// Print("Console > Keyword 'none/entity/assignees/group/faction/everyone': Sets task visibility to NONE/ENTITY/ASSIGNEES/GROUP/FACTION/EVERYONE; Can only be used with <visibility> parameter", LogLevel.NORMAL);
1393// Print("Console > Keyword 'none/map/list/all': Sets task UI visibility to NONE/MAP_ONLY/LIST_ONLY/ALL; Can only be used with <visibility> parameter", LogLevel.NORMAL);
1394//
1395// Print("Console > Keyword 'all': Displays all available tasks in the scene; Can only be used with command: " + m_sCommandTaskDisplay, LogLevel.NORMAL);
1396// Print("Console > Keyword 'true/false': Forces assignment to task; Can only be used with <force/enable> parameter", LogLevel.NORMAL);
1397// }
1398//}
1399//#endif