Jump to content
disasterbator

Task completes when AI get in helicopter

Recommended Posts

I've tried searching around for this on the forums, but so far no luck.

 

So I'm making a helicopter based mission, and one of the tasks requires landing and picking up and informant. Now, is there an easier way to do this besides having a trigger for skipping a waypoint, one for the informant leaving the area and completing the task, and one for if the informant dies that fails the mission?

 

Ideally, I would like it to go something like this: Helicopter lands, making the informant run to get into it, and completing the task once he's inside the helicopter. Is there something I can put into a trigger to make it work like that?

Share this post


Link to post
Share on other sites

@disasterbator,

Make a skip waypoint type trigger and configure:
SIDE PRESENT
likely sized 10x10x1 -ish,
in the condition field:

this && helicopterName in thislist

make a HOLD wp for the informant followed by a "getIn" wp on the helicopter. Connect the "skip waypoint" trigger above to the HOLD wp.

Now, when the helicopter moves into the trigger the HOLD wp will skip and the informant will try to get in the helicopter.

Use,

["taskNAME", "SUCCEEDED"] call BIS_fnc_taskSetState;

any time to complete the task.

That's all pretty conventional advice. I'd do it like this,

waitUntil {sleep 20; informant distance helicopter<10 && speed helicopter ==0};  informant assignAsCargo helicopter; informant moveinCargo helicopter;
informant sideChat "I'll agree to anything just don't throw me out!";
["taskNAME", "SUCCEEDED"] call BIS_fnc_taskSetState;

Have fun!

 

Spoiler

you might prefer like this,


pickUP=[]spawn{
	waitUntil {
		sleep 20;
		informant distance helicopter<10 && speed helicopter ==0
		};

informant assignAsCargo helicopter;
informant moveinCargo helicopter;
informant sideChat "I'll agree to anything just don't throw me out!";
["taskNAME", "SUCCEEDED"] call BIS_fnc_taskSetState;
	};

 

 

  • Like 1

Share this post


Link to post
Share on other sites
47 minutes ago, wogz187 said:

@disasterbator,

Make a skip waypoint type trigger and configure:
SIDE PRESENT
likely sized 10x10x1 -ish,
in the condition field:


this && helicopterName in thislist

make a HOLD wp for the informant followed by a "getIn" wp on the helicopter. Connect the "skip waypoint" trigger above to the HOLD wp.

Now, when the helicopter moves into the trigger the HOLD wp will skip and the informant will try to get in the helicopter.

Use,


["taskNAME", "SUCCEEDED"] call BIS_fnc_taskSetState;

any time to complete the task.

That's all pretty conventional advice. I'd do it like this,


waitUntil {sleep 20; informant distance helicopter<10 && speed helicopter ==0};  informant assignAsCargo helicopter; informant moveinCargo helicopter;
informant sideChat "I'll agree to anything just don't throw me out!";
["taskNAME", "SUCCEEDED"] call BIS_fnc_taskSetState;

Have fun!

 

  Reveal hidden contents

you might prefer like this,



pickUP=[]spawn{
	waitUntil {
		sleep 20;
		informant distance helicopter<10 && speed helicopter ==0
		};

informant assignAsCargo helicopter;
informant moveinCargo helicopter;
informant sideChat "I'll agree to anything just don't throw me out!";
["taskNAME", "SUCCEEDED"] call BIS_fnc_taskSetState;
	};

 

 

That's perfect, thank you so much! I'll have to save that. 

  • Like 1

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

×