Jump to content

Photo
- - - - -

Placing Script


  • Please log in to reply
2 replies to this topic
Thread Starter
whiteruck437
whiteruck437

    Private First Class

  • Members
  • 22 posts

#1

Posted 30 March 2012 - 19:10

Hey all I need some help with a script. I’ve been using a script to place units in a vehicle like driver and so on.

Now if I use a unit that has multiple Gun places like a Blackhawk I can only place one gunner and the pilot. Is there a command that will place units in both weapon places.

I’ve been using this command

this moveInGunner Unit1;

Do I need to add to this or is it another script I need?

gammadust
gammadust

    Master Gunnery Sergeant

  • Members
  • 1056 posts

#2

Posted 30 March 2012 - 21:31

If i am not mistaken you have to moveInCargo, check also the alternatives in the wiki page.

Also i read somewhere that those cargo positions include any mounted guns (depending on vehicle?) and the order is "static", meaning you can't specifically choose the place into which to assign the unit, requiring you to keep filling the vehicle until the position is occupied.

Check this and this (if you are unfamiliar with that devheaven, it is were one can request features and bugs be reported)

Edited by gammadust, 30 March 2012 - 21:40.


Kendo J
Kendo J

    Sergeant

  • Members
  • 150 posts

#3

Posted 31 March 2012 - 21:58

the command is this moveinturret Unit2

that will put your 2nd gunner in the second blackhawk position.

you need the COMREF... it has everything every scripting command and every unit name... http://www.ofpec.com/COMREF/

then you can use things like

Groupone=group this; {_x moveincargo helo1} foreach units Groupone

That will put a whole group into cargo in your helo without having to type in each units Init box.

After that you can begin using the group name to write scripts or init files to give them specific group names and asign radio call signs to give you more realism/imersion... Have fun and good luck mission making.

kendo

Edited by Kendo J, 31 March 2012 - 22:02.