Home   Help Search Login Register  

Author Topic: im a total n00b  (Read 433 times)

0 Members and 1 Guest are viewing this topic.

Kanel

  • Guest
im a total n00b
« on: 30 Jun 2004, 23:25:24 »
Im a total n00b at scripting and stuff... but well you gotta ask to learn.

How do i get a whole group to sit in the back of the helicopter from the begining , and yourself sit in the back with the rest of  the group except for the pilot well hes flying the thing :)

FlidMerchant

  • Guest
Re:im a total n00b
« Reply #1 on: 01 Jul 2004, 00:17:32 »
Make a flying chopper, call it chopper and type in the init field for every soldier you want in the back "this moveincargo chopper". I think there is a faster way but I don't know it.

BibiPhoque

  • Guest
Re:im a total n00b
« Reply #2 on: 01 Jul 2004, 00:25:07 »
You don't always need to ask to learn, you often just need to read (and practice) to learn.
Especially when what you ask can be done without writing a single line of code : your helicopter has to be the leader, and each member of the group has to be set as "In cargo".
Now if you want to be the leader while sitting in the back, you'll need a few scripting skills :

this moveInCargo Chopper
this moveInDriver Chopper
this moveInGunner Chopper

...where Chopper is the name you gave to the chopper (I suggest you use an empty chopper). Then, you can put any soldier in the editor, and enter one of those three lines in the "Init" field of the soldier, to put it either as driver, gunner, or in cargo. This way you can have east units flying west choppers...

Next time you want to know something, try http://www.ofpec.com, they've got plenty of tutorials in there.

rOk

  • Guest
Re:im a total n00b
« Reply #3 on: 01 Jul 2004, 01:32:21 »
Chopper doesn't have to be the leader, it just has to be in a group and when you assign comm. and his soldiers as cargo they start inside.

About the faster way, type this into the commander's init field:
Code: [Select]
_x moveincargo chopper" forEach units group this
Helicopters name is chopper, you can change it, but make sure you change it in the init field of the comm. as well.
Note that the helicopter doesn't have to be in your group
Hope that helps, but you could have found it out yourself if you would have searched a little...


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:im a total n00b
« Reply #4 on: 01 Jul 2004, 10:27:13 »
Welcome to the forum!

Lots of good tutorials in the Editors Depot.     The best way to get started in scripting are to read Johan Gustafsson's Scripting Guide and snYpir's Friendly Intro to Code Snippets.
Plenty of reviewed ArmA missions for you to play