Home   Help Search Login Register  

Author Topic: Heli Transportation Problem in MP, Works fine in SP  (Read 1315 times)

0 Members and 1 Guest are viewing this topic.

Hotkey

  • Guest
Heli Transportation Problem in MP, Works fine in SP
« on: 25 May 2004, 09:03:03 »
Hi together!

I've got a strange Problem with my mission. I'll try to make it short:
I've got two squads with 4 Soldiers each.
Every Squad should get the order to get into a waiting chopper. After each squad has board the assigned choppers they should start, fly to a landing zone and there each squad should get out - the choppers should fly back to base.

So i managed this with the Chopper Load Waypoint synchronized with a "Get In"-Waypoint for the squad leader for every chopper/squad combination (2 squads, 2 choppers).
For the landing equivalent the "Get Out"-Waypoint for the squad and the "transport unload"-waypoint for the chopper - again for every squad/chopper one waypoint-combination.

Additional i placed an invisible H at every landing point of each chopper. (don't know if it's needed but i read that in a tutorial)

So in SP everything is working as it should:
When the mission starts the choppers are starting their engines and waiting for the squad to get in. After that they fly to the Lz, land there and take off again after each squad has dissembarked.

No to MP with 2 Slots (I've made the 2 Squadleaders "Playable")
In MP with one Human Player (rest AI) everything works like in SP as well.

No the Problem:
With 2 Human players (rest AI) the Helicopter for the player which is the server acts like he should. But the chopper for the other player don't waits till the squad is in but takes off immediately after his engines are on full power. (We switched the squad and the "host-role")

So as i intended this mission to be played by 2 human Squad Leaders as a coop mission i would be very happy if someone could help me out with this.


Greets
--- Hotkey


TERA_Forrest

  • Guest
Re:Heli Transportation Problem in MP, Works fine in SP
« Reply #1 on: 01 Jun 2004, 22:55:55 »
My eyes are burning from all that info :D .  You could do it this way.

name heli1 and heli2

in the "playable" charactor for heli one type this into his init field:

"_x moveincargo heli1" foreach units this

make the first wp for heli1 the transportunload, and the first wp for the group of soldiers getout .  Also add your invisable H, what that does is forces the heli to land there, other wise the heli will just fly around the area and find a spot to drop the soldiers.

what will happen is this, u will start your mission, you will already be inside the heli at the start with all the soldiers in your group, it will take you to the insertion zone, drop you off, and if you make a second wp for the heli to leave, it will leave.  Just do the same for both heli's and groups.

hope i havn't confused you lol

Hotkey

  • Guest
Re:Heli Transportation Problem in MP, Works fine in SP
« Reply #2 on: 02 Jun 2004, 09:55:12 »
Hi!

I've tried this too (even if i don't want to be inside the heli at start of the mission).
But with this solution the chopper with the Human player who is not the server wont Land at the Transport unload Waypoint.
So as strange like the other way....

Offline CrashDome

  • Members
  • *
Re:Heli Transportation Problem in MP, Works fine in SP
« Reply #3 on: 09 Jun 2004, 06:57:46 »
I had a similar issue once.

I think the reason is that the other player (client) is not local to the same machine as the helicopter (server) they wish to board. i.e. the heli doesn't think there is anyone getting in

I cannot for the life of me remember what I exactly did, but the premise was to script the entire thing -- from landing ( heli1 land "GET IN" ) then loop until all units were aboard checking with the ( _unit in heli1 ) condition before ordering the next move command. Don't even get me started on the problems trying to get the squad to board the damn chopper.

Alternative: You might also try using the join command to join the heli to the player w/ a trigger. Then, upon arrival tell heli to join grpNull and head home. This will probably be less work and be more reliable

Hotkey

  • Guest
Re:Heli Transportation Problem in MP, Works fine in SP
« Reply #4 on: 09 Jun 2004, 16:54:07 »
thanks 4 the answer!
I'll give it a try with the script.
Strange anyway :-)