Jump to content

fadly1979

Member
  • Content Count

    5
  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

About fadly1979

  • Rank
    Rookie
  1. well, actually i want to make a HALO jump mission. i want to make the soldier jump out of the plane without parachute. i've found a workaround though, using setpos instead. but if there's any other option, please do share. but please, no "copy this.sqf and exec it". i just started to learn this and i wish to learn code by code. thank you.
  2. i set a trigger with this in On Act field _soldier Action ["getout", _plane]; the trigger work when i use a helicopter. But it doesn't work when i use C-130. is there suppose to be a minimum speed for this to work?
  3. You can use createVehicle array command. For example. _vehicle = createVehicle ["vehicle" , (getPos _object), [], 0, "FLY"] this will create a vehicle that spawn in a flying mode. or better yet _vehicle = group createunit ["vehicle" , (getPos _object), [], 0, "FLY"] Which will create a piloted vehicle instead of empty vehicle. ---------- Post added at 12:41 PM ---------- Previous post was at 12:17 PM ---------- Yes it is. i made a LAPES mission where a vehicle spawn at the same position, direction and speed of a C-130. the problem is, when i did that, the spawned vehicle will collided with the plane and both were destroyed. So i make it so the vehicle will spawn a few metres under the plane's belly. here the example code. _vehicle setPos [getPos plane select 0, getPos plane select 1, (getPos plane select 2)-3]; it will spawn the vehicle 3 metres under the plane's belly so it won't collided.
  4. After many hours of experimenting, i finally crack the code. now i can spawn unit in mid air. here's the way. this to create a vehicle 100 meters on top of an object named _object. Create a trigger of your choice and in On Act box write this script : first we need to create a vehicle _vehicle = "vehicle" createVehicle getPos _object; i've been trying exhaustively to use an array in the getpos part _vehicle = "vehicle" createVehicle [getPos _object select 0, getPos _object select 1, 100]; but it doesn't work. Googling produce nothing, just a lot of normal on the ground spawning. Then a break came a few minutes ago. i tried this code _vehicle = "vehicle" createVehicle getPos _object; _vehicle setPos [getPos _vehicle select 0, getPos _vehicle select 1, 100]; and IT WORK LIKE A CHARM!!! Sorry guys for my bragging but after banging my head on this problem for many hours, finding a solution is like the greatest achievement of mankind.
  5. i kind off figure it out on my own. sorry to bother ya. thread close.
×