Jump to content
Sign in to follow this  
dulix11

Waypoints and Tasks

Recommended Posts

In the mission I'm making, your team is given the task of lazing some targets, but the CAS is shot down on its way over, and your new task is assigned to rescue the downed pilot.

I have so far, the Wipeout flying past, exploding on cue, the pilot ejecting on cue, and falling into the correct area. A "Task Cancelled: Laze targets" and "Task Assigned: Rescue pilot" task pop up on cue. Both of those are synced to a trigger which blows up the Wipeout as it passes through.

What I need is for the "Laze targets" task to come up first thing as soon as the mission starts. Then I need a way to delete the waypoint I have put on the laze target, and create a new one to "Join and Lead" the pilot.

For all the tasks I'm using the Task Module to make things easier for myself.

Share this post


Link to post
Share on other sites

For all the tasks I'm using the Task Module to make things easier for myself.

A lot of this would be easier done scripted in, IMO.

https://community.bistudio.com/wiki/BIS_fnc_taskHint

https://community.bistudio.com/wiki/BIS_fnc_taskSetState

https://community.bistudio.com/wiki/BIS_fnc_setTask

https://community.bistudio.com/wiki/BIS_fnc_taskSetCurrent

You can still use the editor modules to set the name of each task, to get your first task to hint at the beginning use the first link and have a sleep or waitUntil the player is fully initialized to "hint" it. Use the second link to set the first task as "Succeeded". Then you could either use the third link, then the fourth, or just the fourth. The setTask can completely create your next task (Join and Lead Pilot), but if you have a task module already down, don't worry about using it. The taskSetCurrent will set a task as the current task, so as long as you have a destination defined in the task module that you have placed down you should be able to set that task a current to get a new waypoint to that task.

Edited by JShock

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  

×