OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SnakeFart on 15 Apr 2003, 03:07:05

Title: start in cargo?
Post by: SnakeFart on 15 Apr 2003, 03:07:05
just as the question asks how do i get a group to start in an vehicle  cause i dont want them to run to it (its in the water)... answer only if there is an init field cause i dont have time to learn scripting with notepad
Title: Re:start in cargo?
Post by: Kaliyuga on 15 Apr 2003, 03:17:06
well.. you can use this :


unitname moveincargo vehiclename

in their init field and they will start in cargo automatically

*note the unitname and vehiclename are the ones you assign in the mission editor*

Or you could also group them all together (this includes the vehicle) and make the "special" field  read  'in cargo'   instead of 'in formation'
:toocool:
Title: Re:start in cargo?
Post by: SnakeFart on 15 Apr 2003, 04:13:03
ok i get that and i have another question should i start to name every unit and vehicle when i place them?
Title: Re:start in cargo?
Post by: Captain Winters on 15 Apr 2003, 05:25:26
Not every soldier nessisary. For intro and cutscenes and the sort its a good idea, but only do it in missions if you're going to use them as a part of a script. If you name everyone you'd have 5345454444546545353565558754563686543557893656536748534575435474536545675447545334535 names to memorize!  8)

Tanks!  :o
Title: Re:start in cargo?
Post by: _hammy_ on 15 Apr 2003, 05:32:51
what you can do to have a whole group start out in the vehicle, you can do.

(put in init field of group leader)

grp1 = group this; _x moveincargo veh foreach units grp1

well i think thats how you do it...

I only name units when i need to name them... such as if i was going to need that unit in a script, then I would need to name that unit.
Title: Re:start in cargo?
Post by: Flapje on 15 Apr 2003, 15:40:24
answer only if there is an init field cause i dont have time to learn scripting with notepad

2 days ago I told you how to script in notepad... just give it a try, you can put any command just in there. I was always afraid to use scripts, but on a time I wanted to make a cool cutscene and it had timed shooting and stuff, impossible to do without scripting... so I just put some commands in a notepad, and it worked!! :wow: it was just a wild shot. so, just try some time, fool around.

as for the names, just use names as a1 and a2 or j1 and stuff ::) and for the more imporant guys comm and you or player. that's what I do.