System: bug fix

This commit is contained in:
Sidi Liang 2019-07-31 14:29:13 +08:00
parent 8243e67feb
commit f6de04542e
1 changed files with 11 additions and 1 deletions

View File

@ -76,7 +76,17 @@
</binding>
<binding>
<command>nasal</command>
<script>setprop("/sim/sound/voices/pilot", "Hey there! How can I help you, comrade?")</script>
<script>
if(!getprop(services/service-truck/enable)){
setprop("/sim/sound/voices/pilot", "Hey there! How can I help you?");
}else{
setprop("/sim/sound/voices/pilot", "Goodbye, drive safe!");
setprop("/sim/sound/voices/copilot", "Thanks comrade!");
}
</script>
</binding>
<binding>
<command>dialog-update</command>