Home   Help Search Login Register  

Author Topic: moveincargo vs. assignascargo  (Read 1234 times)

0 Members and 1 Guest are viewing this topic.

Mr.BoDean

  • Guest
moveincargo vs. assignascargo
« on: 12 Dec 2002, 04:19:38 »
 I'm having an issue commanding units in MP that were created with the this moveincargo jeep command in the unit's Initialization field.    i.e., in MP mode, the units do not want to disembark the stopped vehicle, though they did in preview mode. The driver is a non-playable AI unit and the  3 troops are under the Group leader's command from the beginning of the mission. I tried normal combinations of "Get Out" and "Transport Unload" synched WP's but couldn't get it to work. Does the "movein" command alter /negate the WP's somehow by confusing the AI as to where it is? Should I be using assignas*** instead? Thanks! ;)

Arkalius

  • Guest
Re:moveincargo vs. assignascargo
« Reply #1 on: 12 Dec 2002, 06:18:51 »
You might want to do a combination of assignAs and moveIn. MoveIn only puts them there, assignAs will make them actually want to be there. With AI it's finicky that way. See if using both works.

-Arkalius


Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:moveincargo vs. assignascargo
« Reply #2 on: 12 Dec 2002, 07:26:14 »
Welcome to the forums guys :)

Actually Arkalius, Moveincargo does assign your units to wherever you want them.

The only difference between movein and assignas is that move in will actually put your guys in their position. MoveIn will still assign your guys.

Test it out if you're not sure, move some guys into a chopper then get them to eject. The chopper will circle back round to pick them up, as they are still assigned to the chopper ;)

Mr.BoDean

  • Guest
Re:moveincargo vs. assignascargo
« Reply #3 on: 12 Dec 2002, 07:53:04 »
Thanx for the welcome and replies guys. 8)
  So Sui, I am primarily designing this mission for MP, but want it to be SP-able also. For effect, I wanted the units starting in the moving vehicle. Will assignas do the same thing? And why does this work fine in preview (allowing me to order the units out of the jeep) and not when playing it as a MP game? :-\

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:moveincargo vs. assignascargo
« Reply #4 on: 12 Dec 2002, 08:13:45 »
Hmm...

The 'counter' for the assignas/movein command is the unassignvehicle command... you could try that.

However a TRANSPORT UNLOAD waypoint should do the same thing. Just note, when using a TRANSPORT UNLOAD waypoint, there's no need for a GET OUT waypoint, or any syncing. A TRANSPORT UNLOAD waypoint should automatically kick all cargo out of the vehicle, no matter what/where the cargo's next waypoint is.

However if that doesn't work, I'd suggest something like:

"unassignvehicle _x" foreach (crew jeep - [(driver jeep)])

Which will unassign all the units in the cargo of the jeep.
As for which to use (moveincargo/assignascargo), in this particular case there's not a lot of difference. I'd stick with movein ;)

Try something like that and see if it solves your problem

Mr.BoDean

  • Guest
Re:moveincargo vs. assignascargo
« Reply #5 on: 12 Dec 2002, 12:37:12 »
Ok, great ... again,forgive my newbism here , but is that text above just placed in the condition or activation of a waypoint or trigger or is it a triggered script??

edit: hmmm...ok , actually I just tried the "Transport Unload" idea again . They ride along, but ignore the Unload order. With Assignas, they weren't even in the vehicle, so I don't get that one. :-\

I live near Hollywood ...maybe I can find a "script-writer" for my mission there!  ;)

 
« Last Edit: 12 Dec 2002, 12:56:32 by Mr.BoDean »

Mr.BoDean

  • Guest
Re:moveincargo vs. assignascargo
« Reply #6 on: 12 Dec 2002, 14:25:44 »
Allrighty, Sui! Posting that little snippet in the unit's waypoint On Activation field did the trick. I owe you, man!  :cheers:  How about I just polish up your boots after drills? ;D

   I've still got more questions, but sleep will be good for now. :help:

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:moveincargo vs. assignascargo
« Reply #7 on: 12 Dec 2002, 22:43:32 »
Good to hear you got it working, Mr.BoDean :)

If you were to use assignascargo, you would also need to use the Ordergetin command to get them into the vehicle.
The difference between that and movein is that move in will put them in the vehicle instantly. Assignas/ordergetin will make the unit try to get in themselves. A quick example:

"_x assignascargo jeep" foreach units group
(units group) Ordergetin true

Anyway, my boots are pretty dirty, I wouldn't wish cleaning them on anyone... ;D
Instead, you could always Solve the topic for me (Click the Solve button between the quote and modify buttons on the top right). Then this question/answer can be entered into the editing FAQ so everyone can benefit.

Thanks ;)