Home   Help Search Login Register  

Author Topic: Unloading Squads of Transports  (Read 1166 times)

0 Members and 4 Guests are viewing this topic.

Offline spookdi

  • Members
  • *
Unloading Squads of Transports
« on: 19 Dec 2007, 04:07:28 »
I have a bit of a problem with a mission im working on.
I have a squad of 4 APCs and each has a squad of infantry inside and the APCs go to a transport unload point but only the leader of the APC squad disembarks its troops. I made a diagram.

I need a way for all the APCs to disembark their troops when they reach the waypoint.
Thx

Offline schuler

  • Contributing Member
  • **
Re: Unloading Squads of Transports
« Reply #1 on: 19 Dec 2007, 12:46:54 »
I would look at some of the waypoint tutes http://www.ofpec.com/ed_depot/index.php?action=list&game=OFP&type=tu&cat=xyz
Quote
cmd="EJECT"; "_x action [cmd,apc1]" foreach units squad1; cmd="EJECT"; "_x action [cmd,apc2]" foreach units squad2; cmd="EJECT"; "_x action [cmd,apc3]" foreach units squad3; cmd="EJECT"; "_x action [cmd,apc4]" foreach units squad4;
i would use a script my self on this one,,, but if this helps ya.  :scratch:
one of the other staff might come along and point you in a different direction  :good: cheers
edit changes spelling of squad  :confused:
« Last Edit: 19 Dec 2007, 12:49:44 by schuler »
Semper Fi

Offline spookdi

  • Members
  • *
Re: Unloading Squads of Transports
« Reply #2 on: 20 Dec 2007, 05:05:40 »
Thanks for the reply.

Well i really don't want to give each apc a waypoint because the idea is that the squad of apcs can maneuver around in formation.
 And also i would like to go for a more natural type get-out-one-at-a-time disembark. Is there some way to script a squad leader to issue a ALL Disembark so i could just have the squadleaders order their troops out triggered by the unload waypoint. :scratch:

Also at this stage i'm just playing as a squad member, all the squadleaders and apc are AI.

I'll try that script now.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Unloading Squads of Transports
« Reply #3 on: 30 Dec 2007, 22:48:59 »
Code: [Select]
unitArray orderGetIn orderWhere order is true or false. When the AI gets out, they will still try to follow the waypoints. You may have to use a lockWP TRUE  or better yet, set a condition for the following WP.
urp!