Meatball0311 79 Posted November 28, 2007 I want to make an airstrike script by way of onMapSingleClick. I can create a marker at the pos, but am having trouble getting the AV8B to fly to the target. This is what I have so far: Quote[/b] ]av8b = "AV8B" createVehicleLocal getMarkerPos "Air Support"av8b setDir 90 _target = getMarkerPos "target" _pos = _this select 0 target = createMarker ["egress", _pos] _target setMarkerShape "ICON" "target" setMarkerType "DESTROY" "target" setMarkerColor "ColorRed" av8b doMove _target Any suggestions? Share this post Link to post Share on other sites
Junker 0 Posted November 28, 2007 try this on the last line. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">av8b doMove (getmarkerPos "target") Share this post Link to post Share on other sites
fasad 1 Posted November 28, 2007 Several things : - You are creating the aircraft only, without a pilot - The aircraft is being created at 0 altitude (markers are at z=0). You'll need to be sure of the creation position, and create a pilot to fly it. Traditionally airstrike scripts create the aircraft in the air and then give it a velocity. Do a search, there have been many working airstrike scripts posted on these forums. Share this post Link to post Share on other sites