Home   Help Search Login Register  

Author Topic: AI board chopper from Script  (Read 1255 times)

0 Members and 1 Guest are viewing this topic.

Offline NightJay0044

  • Former Staff
  • ****
  • Let's make OFPEC great again
    • My Steam Workshop
AI board chopper from Script
« 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..
Who's hyped for Arma4, long live Arma!

Offline Sparticus76

  • Members
  • *
Re: AI board chopper from Script
« Reply #1 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?

Offline NightJay0044

  • Former Staff
  • ****
  • Let's make OFPEC great again
    • My Steam Workshop
Re: AI board chopper from Script
« Reply #2 on: 28 Feb 2009, 18:18:57 »
yes this worked fine, used the ordergetin and the assignascargo commands.thanks.
Who's hyped for Arma4, long live Arma!