Home   Help Search Login Register  

Author Topic: easy eject script for c130  (Read 1644 times)

0 Members and 1 Guest are viewing this topic.

dimitri0000111

  • Guest
easy eject script for c130
« on: 12 Aug 2006, 18:46:26 »
Hi I have being searching for a script for ejecting from a c130 airplane in flashpoint but all the scripts i have did not work properley can sombody post a easy script that works the script i had a few monts ago was ejecting from a chinlook does sombody have it?
Thank You

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: easy eject script for c130
« Reply #1 on: 12 Aug 2006, 18:56:45 »
Code: [Select]
_i = 0

#loop

_unit = units group_name select _i
_unit action ["eject", chopper_name]

~1 + random 1

_i = _i + 1
?not (_i==(count units group_name)):goto "loop"

exit

untested, but should work.
« Last Edit: 12 Aug 2006, 19:03:43 by bedges »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re: easy eject script for c130
« Reply #2 on: 12 Aug 2006, 19:12:02 »
Some addon aircraft are faulty and don't work.   In other words it's not you, it's not the script, its the addon.
Plenty of reviewed ArmA missions for you to play

Offline Martin Kuka

  • Members
  • *
Re: easy eject script for c130
« Reply #3 on: 12 Aug 2006, 21:22:32 »
_i = 0

#loop

_unit = units group_name select _i
_unit action ["eject", chopper_name]

~1 + random 1

_i = _i + 1
?not (_i==(count units group_name)):goto "loop"

exit

Tested with C130 Cargo plane full of delta force units and had no problems.
That script is okay, at least for my computer.
Lets get rocked

dimitri0000111

  • Guest
Re: easy eject script for c130
« Reply #4 on: 17 Aug 2006, 15:40:11 »
Hi the script is ok but i need a script that the airplane is not flying around the plane must be created when i cal it by trigger and then fly to my position anyone now how i must do that?

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: easy eject script for c130
« Reply #5 on: 17 Aug 2006, 15:54:21 »
there is a long-standing problem with creating vehicles which you intend AI to fly. creating an empty vehicle is easy enough, but to create an airplane in flight requires enough time for the AI to be moved into the pilot's seat, realise he should be flying, switch on the engines, and begin flying in the right direction, all before the plane plunges into the ground.

are you sure you need to create it? why not simply have it flying around elsewhere? or at an airfield, ready to take off? that way you can control it using standard waypoints and switch triggers.

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: easy eject script for c130
« Reply #6 on: 17 Aug 2006, 15:55:16 »
Simple method:

1) Place a plane on the ground (at an airfield, preferably) and name it plane1 (or whatever)
2) Set it's fuel to 0
3) Give it a move waypoint close to the airfield
4) Set up your call-the-plane-trigger. In the activation field you write:
Code: [Select]
plane1 setFuel 15) In the move waypoint activation you write:
Code: [Select]
plane1 move (getPos player)
The plane will start rolling and fly to your position. I'll stop here because I don't know what you want to happen when the plane arrives...
OFPEC | Intel Depot
RETARDED Ooops... Retired!

dimitri0000111

  • Guest
Re: easy eject script for c130
« Reply #7 on: 17 Aug 2006, 20:57:52 »
Hi thanks but must i sycronize the trigger whit the waypoint The last thing i need then is the parradrop by a trigger Thanks

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: easy eject script for c130
« Reply #8 on: 17 Aug 2006, 20:59:05 »
With my suggested method there is no need for sync
OFPEC | Intel Depot
RETARDED Ooops... Retired!

dimitri0000111

  • Guest
Re: easy eject script for c130
« Reply #9 on: 17 Aug 2006, 21:13:37 »
IT works Thanks A lot!!!

dimitri0000111

  • Guest
Re: easy eject script for c130
« Reply #10 on: 24 Aug 2006, 18:07:24 »
Hi
Tha parradrop and the trigger work properley but The AC 130 Gunship there something strage whit the addon if i lauch an rpg if the airplane is in a mission the rocket wil not go where i fired it behind me or left of me i had a new c130 downloaded at :http://ofp.gamepark.cz/index.php?showthis=8859
But my script not work whit this addon and i just need an eject script for the passenger to jump out can sombody help me? Thanks A lot