Home   Help Search Login Register  

Author Topic: UnassignVehicle, and then assignAsCargo  (Read 778 times)

0 Members and 1 Guest are viewing this topic.

Anton VonE

  • Guest
UnassignVehicle, and then assignAsCargo
« on: 27 Oct 2003, 22:55:06 »
So, I need a helo to be downed, and I did that using the excellent tailrotor.sqs from the editors depot.

Once the chopper is down, I've gotten them to get out of the helo using the unassign command. Seeing as how I'm the pilot of another chopper, I thought it'd be nice to go and pick them up too.

I tried using the assignascargo command for these guys, but it seems not to work. I really want to know if it's possible for them to get into my heli without using waypoints (because i never know where the chopper is going to crash)?

I've been trying to solve this for days, and I'm all out of options.

Anton VonElephantos
« Last Edit: 28 Oct 2003, 11:51:26 by Anton VonE »

Offline ACF

  • Members
  • *
  • Llama?? Ain't that French for tanks?
Re:Unassign Vegicle, and then assignascargo
« Reply #1 on: 27 Oct 2003, 23:45:51 »
After the:

unit AssignAsCargo mychopper

or:

{_x AssignAsCargo mychopper} ForEach [arrayofunits]

you need to:

[arrayofunits] OrderGetIn true

Note it's an array, even if you've only got one unit - check the Command Reference for more info.  Good luck!

Anton VonE

  • Guest
Re:Unassign Vegicle, and then assignascargo
« Reply #2 on: 28 Oct 2003, 03:41:41 »
My bad...I forgot to mention that I did that.

Either way, I'm still stumped.

Anton

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Unassign Vegicle, and then assignascargo
« Reply #3 on: 28 Oct 2003, 05:52:31 »
If i remember correctly, you should give it a
try on the leavevehicle command.

groupname leaveVehicle vehiclename

Off course expecting that your problem is:

the crew always tries to reenter it's unassigned ordered to
getout VEHICLE.

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Anton VonE

  • Guest
Re:Unassign Vegicle, and then assignascargo
« Reply #4 on: 28 Oct 2003, 11:50:26 »
Eh...I'll give it a go with the leavevehicle command later on today.

However the problem isn't that they try to re-enter their old vehicle. The pilots just run off into the wild. I swear, I land right in front of them, and the two just hold hands and run as fast as they can go...off into the Russian's arms. Maybe it'll just be easier if I change my mission so that the pilots defect and you have to kill them.

I'm just kidding of course.

If leavevehicle only resolves the problem of them re-entering their vehicle (which wasn't my problem anyway) I still will need a solution that makes them enter my chopper.

Thanks for all the help so far!
Anton

Offline ACF

  • Members
  • *
  • Llama?? Ain't that French for tanks?
Re:UnassignVehicle, and then assignAsCargo
« Reply #5 on: 28 Oct 2003, 13:11:47 »
OK, I'm guessing now:  might it be skill related?  Could the behaviour be low-skill crew fleeing or, more likely, highly-skilled crew who are continuing on foot towards their next waypoint.  The latter seems more likely as I've seen bailed-out AFV crews follow the rest of their troop.

I'm waffling - if they are off to a waypoint, a brutal solution would be to:

[choppercrew] Join GrpNull

to break the waypoint, then order them to mount your chopper.

Apologies for any perceived double entendres!

Anton VonE

  • Guest
Re:UnassignVehicle, and then assignAsCargo
« Reply #6 on: 29 Oct 2003, 02:13:06 »
It's wierd, because really, there's no other waypoints for them to follow.

Their first waypoint is a guard waypoint, and then their chopper crashes. When a trigger becomes true, I've made a variable equal 1 and that's the condition for their next waypoint (only one of the ways I've tried) which is the get in waypoint pointing to my chopper.

If you can get pilots to load into a heli, then get out, and get into your chopper then I'd really like to see a demo mission.

Thanks!
Anton

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:UnassignVehicle, and then assignAsCargo
« Reply #7 on: 29 Oct 2003, 19:56:50 »
Check the attached sample mission out.

There you will find 5 working ways, all of a different kind.

Each method can be started by using the affilated radio-trigger.

:note - In methods 3, you need to land your chopper
to make the crew start moving.

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Anton VonE

  • Guest
Re:UnassignVehicle, and then assignAsCargo
« Reply #8 on: 30 Oct 2003, 06:00:27 »
Let me tell you Chris, it almost brought a tear to my eye when this worked flawlessly. Thank you so much for all your help!

 :-*You have a special place in my heart (I'm kidding...I have a girlfriend.)

Anton