OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: NightJay0044 on 28 Feb 2009, 05:59:36

Title: AI board chopper from Script
Post by: NightJay0044 on 28 Feb 2009, 05:59:36
Hi all, I'm confused on how to get this to work. How do I get this officer to board this chopper after an .sqs script is finished?

I tried using a global variable inside the script and then making it true within one of the officers waypoint to the chopper but the not very bright AI wont go in the chopper.

How do I get him to board the chopper after a script?

It's a some what complicated matter.

Thanks..
Title: Re: AI board chopper from Script
Post by: Sparticus76 on 28 Feb 2009, 06:31:49
Use this...

Code: [Select]
script_handler = [parameters] exec "scriptname.sqs";
waitUntil {scriptDone script_handler};

then....

_officer assignAsCargo _helo
[_officer] orderGetIn true

That what you after?
Title: Re: AI board chopper from Script
Post by: NightJay0044 on 28 Feb 2009, 18:18:57
yes this worked fine, used the ordergetin and the assignascargo commands.thanks.