Home   Help Search Login Register  

Author Topic: Paradropping Question - SOLVED  (Read 2237 times)

0 Members and 1 Guest are viewing this topic.

Offline Aplion

  • Members
  • *
Paradropping Question - SOLVED
« on: 09 Aug 2008, 23:29:42 »
Well ... my question is ....

I have some units moveInCargo to a chopper ... after this chopper get into a trigger I need these units paradropping.
Note that these units are not grouped, just named individual units.

Any help will be much appreciated.

Aplion
« Last Edit: 14 Aug 2008, 08:24:20 by Aplion »

Offline ckclaw

  • Members
  • *
Re: Paradropping Question
« Reply #1 on: 09 Aug 2008, 23:42:01 »

Offline Aplion

  • Members
  • *
Re: Paradropping Question
« Reply #2 on: 10 Aug 2008, 12:04:29 »
Code: [Select]
oups .. I missed that  :-[

thanks a lot mate ... this seems to be OK for me.

Regards

Aplion

Unfortunatelly my problem is still the same as the line in above source might work fine in SP mission mode but not in MP.
When I'm playing my mission (using
Code: [Select]
nil = [] spawn { { if (((assignedVehicleRole _x) select 0) == "Cargo" ) then { _x action ["EJECT", vehicle _x]; unassignVehicle _x; sleep 1 }; } forEach (crew (vehicle this));};) in MP (me as a server or on a dedi) the units are paradropping without chutes (or they missing their chutes during drop) and at anytime they are dead on ground.

Note that, as said before, the units are not groupped (I want it this way) and my problem is only when the mission is tested in MP mode.

Still need help on that.
« Last Edit: 11 Aug 2008, 11:09:36 by Aplion »

Offline ckclaw

  • Members
  • *
Re: Paradropping Question
« Reply #3 on: 11 Aug 2008, 11:11:02 »
I am using it for MP for one of clan co-ops!  :)

Although the 2nd option i could not get to work the 1st worked a treat.

But i have it for A.I that are para-dropping.
« Last Edit: 11 Aug 2008, 11:35:16 by ckclaw »

Offline Aplion

  • Members
  • *
Re: Paradropping Question
« Reply #4 on: 11 Aug 2008, 11:43:42 »
In my mission I need use it (this or some other script) for both players and AIs.

Do you use this line into a trigger or a waypoint afterall ?

Aplion

Offline ckclaw

  • Members
  • *
Re: Paradropping Question
« Reply #5 on: 11 Aug 2008, 12:16:49 »
I had the line of code in a trigger 'on act' field.
And grouped or snyc'd (which ever one works) the trigger to the chopper
Then when the chopper fly's through the trigger it kicks everyone outta the chopper.
Very nice to watch! Thanks to Spooner  :good:
« Last Edit: 11 Aug 2008, 12:19:04 by ckclaw »

Offline Aplion

  • Members
  • *
Re: Paradropping Question
« Reply #6 on: 11 Aug 2008, 12:44:02 »
I've been tried the waypoint version but it working fine only in SP (editor) mode.
I will try also the triggered version and will see.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Paradropping Question
« Reply #7 on: 11 Aug 2008, 16:20:01 »
Be careful using WP's in MP. I suspect them to be local to their group. I had a mission in which the on activation for an AI WP fired only for the server.
urp!

Offline Aplion

  • Members
  • *
Re: Paradropping Question
« Reply #8 on: 11 Aug 2008, 23:05:53 »
nope ... Spoones line doesn't working in MP (in my mission at least) either into a trigger or WP. In both cases most of the units (grouped or not) are getting killed as they are falling without chute  :(

Offline Killswitch

  • Members
  • *
  • Peace, cheese and ArmA
Re: Paradropping Question
« Reply #9 on: 12 Aug 2008, 02:02:19 »
Add a bit of locality checking to that oneliner and it'll probably be fine. Below, a code snippet for ejecting soldiers in cargo of a helicopter named someheli:
Code: [Select]
nil=[]spawn{{if(local _x&&((assignedVehicleRole _x)select 0)=="cargo")then{_x action["EJECT", vehicle _x];unassignVehicle _x;sleep 2;};}forEach(crew someheli);};(Tested and works both when run from a radio trigger and a waypoint on a dedicated server for me)

The rule is: Only use the action script command where the affected unit is local

EDIT: Fixed - the code snippet was missing a closing curly bracket at the end.
« Last Edit: 12 Aug 2008, 19:11:00 by Killswitch »

Offline Aplion

  • Members
  • *
Re: Paradropping Question
« Reply #10 on: 12 Aug 2008, 16:28:45 »
sorry but must be an error somewhere in this code as gives me "} missing" message. can you fix it for me please ?

Offline Killswitch

  • Members
  • *
  • Peace, cheese and ArmA
Re: Paradropping Question
« Reply #11 on: 12 Aug 2008, 19:07:04 »
Snippet above fixed - the missing "}" was found at a nearby pub and I told it to get back to work instead.  :D

Offline Aplion

  • Members
  • *
Re: Paradropping Question
« Reply #12 on: 13 Aug 2008, 08:17:36 »
Seems that it was on Summer period vacation :)

Thanks man ;)
« Last Edit: 13 Aug 2008, 15:07:08 by Aplion »