Jump to content
Nikoladis

Why does this spawn under water?

Recommended Posts

Why does this spawn under water? (map: malden 2035)

veh = "FIR_F16D" createVehicle ([8800,10200,300]); 
grp = createVehicleCrew veh; 
unit = grp createUnit [typeOf driver veh, grp, [], 0, "CARGO"];
bomber = grp addWaypoint [getPos spawny2, 0,0,"Bomb"];
veh setVelocity [(sin 270 * 200), (cos 270 * 200), 0];

Share this post


Link to post
Share on other sites

Try createVehicle ["FIR_F16D", [8800,10200,300], [], 0, "FLY"] (untested)

  • Like 1

Share this post


Link to post
Share on other sites

@Nikoladis

Quote

Why does this spawn under water?


The object is either snapping to or falling to the ground.

veh= createVehicle ["FIR_F16D",  [8800,10200,300], [], 0, "FLY" ];

Like @stanhope said.

You may also want,

createVehicleCrew veh;
flightGroup = group driver veh;

with,

wp = flightGroup addwaypoint [position spawny2,0];
wp setwaypointtype "MOVE";
wp setWaypointSpeed "NORMAL";
flightGroup setBehaviour "AWARE";

veh flyInHeightASL [1000, 1000, 600];
veh limitspeed 650;

Have fun!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×