Jump to content
Sign in to follow this  
SouthSaturnDelta

Spawning flying air units

Recommended Posts

Hello you crazy cats !

I have a bit of a problem guys - my spawned jet to be used for airstikes just falls to earth and crashes.

I use this code to spawn at height hoping the pilot will bring the bird under controll before heading to his targets.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">"SoldierWPilot" createunit [getMarkerPos "spawn" ,groupone ,"pilot1=This",1.0, "Major"]

AIR1 = "AV8B2" createvehicle (getMarkerPos "spawn")

pilot1 moveindriver AIR1

AIR1 setPos [(getPos AIR1 select 0),(getPos AIR1 select 1),(getPos AIR1 select 2)+1700]

Any ideas about spawning a flying jet that dosnt loose control and crash ?

Many thanks,

SSD

Share this post


Link to post
Share on other sites

Does your jet have any waypoints for somewhere to go? I know if I just spawn a jet in the air without any waypoints, he just falls into the ground.

Share this post


Link to post
Share on other sites

Ahh, its cool.

I sorted it out now using

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">AIR1 = createVehicle ["AV8B",getMarkerPos "spawn",[],0,"FLY"]

All is well again at fort SSD !

Mcnuggets away !

Share this post


Link to post
Share on other sites

Jep thats the right sytax!

You can this if you want.

Regards,

Mr-Murray

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
Sign in to follow this  

×