OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: KJAM on 02 Aug 2003, 01:40:26

Title: assigning specific cargo slots
Post by: KJAM on 02 Aug 2003, 01:40:26
ok, lets say a helo has 13 slots allowing 13 soldiers to get in, but lets just say i have 2 guys and for asthetic reasons i want them to occupy cargo slots numbers 3 and 7 anybody know how to do this?.

Example
A huey has 12 cargo slots (just for arguments sake lets say it has, and not the pilot or gunner positions either, lets say they are occupied) and i have 4 soldiers, now 4 of the 12 cargo slots, when a soldier is in them, is on the floor of the huey with his feet on the skids, i can easily enough WHICH cargo slot it is, but i cant figure how to move them into the specific slots i want

can anyone help me?
Title: Re:assigning specific cargo slots
Post by: General Barron on 02 Aug 2003, 02:21:11
You can move gamelogics into a vehicle just like other units (logic moveincargo helo), and they will take up the slot they are in, just like a real unit. Hence, you could first camcreate a couple logics, move them into the helo, then move in your first man, then camcreate a few more logics and move them in the helo, then move the second guy in.

Hope that helps  ::)
Title: Re:assigning specific cargo slots
Post by: shadow99 on 06 Nov 2004, 00:57:04
So uh, how do I create a gamelogic to move in the helo through script, then?
Would I do:


logic = "gamelogic" camcreate [0,0,0]
logic moveInCargo chopper1

??

Title: Re:assigning specific cargo slots
Post by: Blip on 06 Nov 2004, 07:21:09
You don't have to camcreate them.  Just make them in the editor and give them names like "gl1, gl2, etc..."

Then you just treat them like regular units in your script.

Quote
gl1 moveincargo chopper
gl2 moveincargo chopper

Blip  :joystick: