Jump to content
Sign in to follow this  
YattaYatta

Preventing players from switching active task ?

Recommended Posts

How do you prevent a player from selecting his active task (map > task > set as current task) ?

Share this post


Link to post
Share on other sites

Well, you can create new task after current is completed. I don’t think you can somehow prevent player from doing this.

Share this post


Link to post
Share on other sites

I just wanted all the task to be visible in the briefing / map - since the mission plan is already known, but force the player to do each in the right order.

Imagine a mission where you have to find the hostages, then escape with them : the player can set his task to "escape" before finding the hostage. Sure the conditions wont be met for task completion, yet its strange to allow the player to pick the task he wants.

Thanks for the answer tough.

Share this post


Link to post
Share on other sites

Maybe not the best solution, but you can check current player’s task in a loop and change it when you need, like this:

currentTask = "task1";
while {true} do
{
   if (player call BIS_fnc_taskCurrent != currentTask) then
   {
       currentTask call BIS_fnc_taskSetCurrent;
   };
   sleep 3;
};

Edited by RegEdit

Share this post


Link to post
Share on other sites

Just don't create tasks until you want them created. For the briefing use the actual briefing and on map markers instead of tasks.

Share this post


Link to post
Share on other sites

Yeah, usually the way it works is tasks are the things you should be doing *right now*, and add new ones as new tasks become do-able. Briefing should have the general plan from start to finish.

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  

×