prettya basic
It is my first add-on, so it is basic.
if (!$autoPilotBinds){ $remapDivision[$remapCount] = "AutoPilot"; $remapName[$remapCount] = "Toggle AutoPilot"; $remapCmd[$remapCount] = "autoPilot_Startup"; $remapCount++; $autoPilotBinds = 1;}function autoPilot_Startup(%x){ if(%x) { if(!moveforward(0)) { moveforward(1); } else { moveforward(0); } }}
Code: [Select]if (!$autoPilotBinds){ $remapDivision[$remapCount] = "AutoPilot"; $remapName[$remapCount] = "Toggle AutoPilot"; $remapCmd[$remapCount] = "autoPilot_Startup"; $remapCount++; $autoPilotBinds = 1;}function autoPilot_Startup(%x){ if(%x) { if(!moveforward(0)) { moveforward(1); } else { moveforward(0); } }}not bad
function your_remap_function( %down ){ if ( %down ) { $mvForwardSpeed = !$mvForwardSpeed; }}
Code: [Select]if(!moveforward(0))
if(!moveforward(0))
This isn't auto pilot.
failbin?
Auto pilot controls at least altitude, it's just the wrong name.