Jump to content
Sign in to follow this  
frezinator

need help with scripting (How to add waypoint when player click set as current task?)

Recommended Posts

How do you set a waypoint for task, for example when a player go to task and click set as current task, A waypoint will show where the task is..


What do I need to add so I can set a waypoint for my task?

this is my briefing.sqf

[php]player createDiaryRecord ["Diary", ["*The Last Mission*", "*Infiltrate the Russian Base and kill the Russian dictator*"]];


tskobj_1 = player createSimpleTask["Kill the Russian Dictator"];
tskobj_1 setSimpleTaskDescription ["It is confirmed that the Russian dictator has been spotted in a Russian base and he is escorted by a t-90, Our goal is to kill the Russian dictator and eliminate all russian forces who blocks our way", "Kill the Russian Dictator", "Russian dictator"];

Share this post


Link to post
Share on other sites

anyone know how to put a waypoint for task???? For example when you click set as currnent, a waypoint will automatically showup and show where the task is

Share this post


Link to post
Share on other sites
It didn't work I just tried it :(

It should work. Did you make the marker and have it set up for the correct task? I know this works, I think you may have misplaced or typo.

This is the true and long tested way.

Once a task is in the task area (J) and you click on, than click "set as current task". The task marker will move to that marker you made.

Share this post


Link to post
Share on other sites

if setSimpleTaskDescription doesn't work you can systematically add the waypoint to your group on the objects location.

_tskWP = _grp addWaypoint [getPos _pos,_radius,_index]

and then just add the other waypoint info such as setWaypoint behaviour etc. after you add the waypoint to the group. Keep in mind that all groups start out with a waypoint already so any waypoints added afterwards are going to have an index of 1 or more.

Share this post


Link to post
Share on other sites
if setSimpleTaskDescription doesn't work you can systematically add the waypoint to your group on the objects location.

_tskWP = _grp addWaypoint [getPos _pos,_radius,_index]

and then just add the other waypoint info such as setWaypoint behaviour etc. after you add the waypoint to the group. Keep in mind that all groups start out with a waypoint already so any waypoints added afterwards are going to have an index of 1 or more.

I fixed the problem. I made a simple mistake, in the briefing.sqf, I put it on the top instead at the bottom >.<

Thank you for helping everyone!!!!!

Edited by frezinator

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
Sign in to follow this  

×