SouthSaturnDelta 1 Posted July 8, 2007 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
Shadow_Spyder 0 Posted July 8, 2007 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
zaphod 0 Posted July 8, 2007 hi there ... what happens to an airplane with no speed? ... try this: http://community.bistudio.com/wiki/setVelocity regards, zap Share this post Link to post Share on other sites
SouthSaturnDelta 1 Posted July 8, 2007 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
Mr-Murray 0 Posted July 8, 2007 Jep thats the right sytax! You can this if you want. Regards, Mr-Murray Share this post Link to post Share on other sites