fadly1979
-
Content Count
5 -
Joined
-
Last visited
-
Medals
Posts posted by fadly1979
-
-
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?
-
@fadly1979.... When you spawn a jet like this does it actually fly?...or just crash in a burning heap?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 ----------
Nice you can get something to work! I'm stuck with several things that will not at the moment.That array:
[getPos _vehicle select 0, getPos _vehicle select 1, 100];
As far as I understand it equates to x,y and z coordinates
getPos _vehicle select 0, = x
getPos _vehicle select 1, = y
getPos _vehicle select 2, = z
If you substitute a value like you have done above - it returns that position in meters from the original possition.
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.
-
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.
-
i kind off figure it out on my own. sorry to bother ya. thread close.
Action command aren't working
in ARMA 2 & OA : MISSIONS - Editing & Scripting
Posted
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.