Forum Jump :

Author Message


Posts: 6
Rank:


Level: Member

Country: de
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2013-02-13 16:02        
     
Hi,

I saw updating task markers in a mission,
and searched everywhere but couldn't find anything, maybe I searched just with the wrong keywords...

Here is an example image, of what I mean:
(Green, white and yellow one.)

http://s14.directupload.net/file/d/3165/mhsw7mdu_png.htm

These markers are updating to the current state of the task.
How to implement markers like this?

greets


Author Message


Posts: 283
Rank:


Level: Member

Country: nl
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2013-02-15 13:35        
     
The white marker is created in the briefing by linking the marker in question to the particular task with the setSimpleTaskDestination markerpos statement, for example:

briefing.sqf:
task1 = player createSimpleTask ["Eliminate the commanders"];
task1 setSimpleTaskDescription ["Eliminate the insurgent commanders", "Eliminate the commanders", "Eliminate the commanders"];
task1 setSimpleTaskDestination markerpos "obj1";
player setCurrentTask task1;

It can be greened up by using the settaskstate statement in a trigger, for example:

on activation field of trigger:
task1 settaskstate "SUCCEEDED";

The orange colour can be set using the setCurrentTask statement, but generally this should be done by the mission maker only if tasks definitely indeed need to be performed in a particular order. Players can also pick any task as their current one by bringing up the task menu.

player setCurrentTask task1;

Regards,

Sander


Advertisement


Author Message


Posts: 6
Rank:


Level: Member

Country: de
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2013-03-14 11:27        
     
Thanks for the answer!

In one task I have two destinations, when I write it down like this:

tskobj_2 setSimpleTaskDestination (getMarkerPos "radio2");
tskobj_2 setSimpleTaskDestination (getMarkerPos "radio1");

only the first marker is created.
Is there any way to fix this?

greets

This post was edited by allstar1 (2013-03-14 11:55, ago)


Author Message


Posts: 283
Rank:


Level: Member

Country: nl
Location:
Occupation:
Age:
In-game name:

 
#4 Posted at 2013-03-19 11:45        
     
No, there is no way to fix this if you insist on a single task, you would have to make it clear in the briefing that the task is related to both of the locations. However if you decide to create separate tasks for each radio then you would ofcourse face no such problem, as each could point to the associated marker.

example:
tskobj_2 = player createSimpleTask ["Blow up the radio at the northern site"];
tskobj_2 setSimpleTaskDescription ["Blow up the radio at the northern site", "Blow up the radio at the northern site" , "Blow up the radio at the northern site"];
tskobj_2 setSimpleTaskDestination markerpos "radio1";
tskobj_3 = player createSimpleTask ["Blow up the radio at the southern site"];
tskobj_3 setSimpleTaskDescription ["Blow up the radio at the southern site", "Blow up the radio at the southern site" , "Blow up the radio at the southern site"];
tskobj_3 setSimpleTaskDestination markerpos "radio2";

Regards,

Sander