#Conditional Hooks

$Application: FS2_Open

$State: GS_STATE_GAME_PLAY

$KeyPress: a
$On Key Pressed: [
stopleft = ad.playLoopingSound(ad.getSoundentry("leftloop"))
ad.playSound(ad.getSoundentry("leftstart"))
]

$KeyPress: a
$On Key Released: [
stopleft:stop()
]

$KeyPress: d
$On Key Pressed: [
stopright = ad.playLoopingSound(ad.getSoundentry("rightloop"))
ad.playSound(ad.getSoundentry("rightstart"))
]

$KeyPress: d
$On Key Released: [
stopright:stop()
]

$KeyPress: s
$On Key Pressed: [
stoprev = ad.playLoopingSound(ad.getSoundentry("revloop"))
ad.playSound(ad.getSoundentry("revstart"))
]

$KeyPress: s
$On Key Released: [
stoprev:stop()
]

$KeyPress: Left Ctrl
$On Key Pressed: [
stopdown = ad.playLoopingSound(ad.getSoundentry("downloop"))
ad.playSound(ad.getSoundentry("downstart"))
]

$KeyPress: Left Ctrl
$On Key Released: [
stopdown:stop()
]

$KeyPress: space
$On Key Pressed: [
stopup = ad.playLoopingSound(ad.getSoundentry("uploop"))
ad.playSound(ad.getSoundentry("upstart"))
]

$KeyPress: space
$On Key Released: [
stopup:stop()
] 

#End
