Home   Help Search Login Register  

Author Topic: Getting in grouped vehicles.  (Read 773 times)

0 Members and 1 Guest are viewing this topic.

smiller

  • Guest
Getting in grouped vehicles.
« on: 26 Jul 2005, 18:31:43 »
G'day

I have four APCs in a group. They reach a checkpoint and I have three squads which I want to get in their own specific APC. What do I need to do for this to happen?

Sam

Dane

  • Guest
Re:Getting in grouped vehicles.
« Reply #1 on: 26 Jul 2005, 18:49:43 »
Make the checkpoint a GETIN waypoint and write in waypoints init field:
{_X assignAsCargo vehiclename} forEach units nameOfGroupleader or just group-name.
« Last Edit: 26 Jul 2005, 18:52:39 by Dane »

smiller

  • Guest
Re:Getting in grouped vehicles.
« Reply #2 on: 26 Jul 2005, 19:22:41 »
Doesn't want to work. Everyone just tries to get in the lead vehicle. Could it be that I'm placing the code in a waypoint?

Sam

Dane

  • Guest
Re:Getting in grouped vehicles.
« Reply #3 on: 26 Jul 2005, 19:33:59 »
I assume the three squads are not grouped? If the aren't give each group a GETIN waypoint same location as the vehicles and write in each groups GETIN waypoint activation field: {_X assignAsCargo vehiclename} forEach unit groupname or groupleaderName.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Getting in grouped vehicles.
« Reply #4 on: 26 Jul 2005, 19:39:30 »
You need to waypoints for each group for that.
Then you need to name each vehicle seperately.

Make a move wayoint wherever you want the group to go (or use
a previous one if already there) and into it's onActivation field
you write:

"_x assignascargo vehiclename" forEach units this

:note - the this will refer to the owner of the waypoint = the group.

After this waypoint just create a simple GETIN waypoint and the
group should board the assigned vehicle as cargo.

If you put the assignascargo stuff into the getin waypoint itself,
it won't help, because the onActivation field will become hot,
once the waypoint has been passed = GETIN has happened.

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

smiller

  • Guest
Re:Getting in grouped vehicles.
« Reply #5 on: 26 Jul 2005, 20:14:53 »
Okay now something's working! They're getting in their assigned vehicles, but it's still just one person going in instead of the whole group.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Getting in grouped vehicles.
« Reply #6 on: 26 Jul 2005, 20:20:56 »
Is your group for sure one group (are they connected to
eachother by thin lines)?

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

smiller

  • Guest
Re:Getting in grouped vehicles.
« Reply #7 on: 26 Jul 2005, 20:23:32 »
Yup. They're not grouped with the vehicle if that's what you're getting at.

Offline 456820

  • Contributing Member
  • **
Re:Getting in grouped vehicles.
« Reply #8 on: 26 Jul 2005, 20:37:44 »
"_x action ["get in",apc1]" foreach units group_name
that should work syntax not guaranteed but thats a basic idea i think
put that in the activation of the waypoint you want them to get in the apc's

smiller

  • Guest
Re:Getting in grouped vehicles.
« Reply #9 on: 27 Jul 2005, 09:11:15 »
It responds - unknown operator "get."

Now I remember why I stopped playing OFP lol.

Sam

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Getting in grouped vehicles.
« Reply #10 on: 27 Jul 2005, 13:45:50 »
Don't use the action'ed way, because this will make the units
GETIN without advancing to the vehicle (imidiate getin or so).

OK, again from scratch;

Place your 4 grouped apcs and give each a seperate name;

apc1, apc2, apc3, apc4

Now create a group of soldiers and give them an ordinary move
waypoint to somewhere near the apc (not important where, but
near to shorten up boarding-time).

Into this waypoint's onActivation field you type:

"_x assignascargo apc1" forEach units this

Now add a GETIN waypoint as second waypoint for the group.

make same for the second group but off course the assign command will look now like this:

"_x assignascargo apc2" forEach units this

same for group 3 with:

"_x assignascargo apc3" forEach units this

If there's enough space in cargo, everybody should board the
right vehicle now.

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

smiller

  • Guest
Re:Getting in grouped vehicles.
« Reply #11 on: 27 Jul 2005, 14:56:40 »
Huzzah! Thanks a bunch guys, expect more bone questions.

Sam