OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: dimitri0000111 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
-
_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.
-
Some addon aircraft are faulty and don't work. In other words it's not you, it's not the script, its the addon.
-
_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.
-
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?
-
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.
-
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: plane1 setFuel 15) In the move waypoint activation you write: 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...
-
Hi thanks but must i sycronize the trigger whit the waypoint The last thing i need then is the parradrop by a trigger Thanks
-
With my suggested method there is no need for sync
-
IT works Thanks A lot!!!
-
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