System: bug fix againnnnnn I'm stupid yes it's me again

This commit is contained in:
Sidi Liang 2019-07-31 14:33:29 +08:00
parent b505a2f955
commit 07d57635d6
1 changed files with 4 additions and 3 deletions

View File

@ -78,11 +78,12 @@
<command>nasal</command>
<script>
if(!getprop("services/service-truck/enable")){
setprop("/sim/sound/voices/pilot", "Hey there! How can I help you?");
if(getprop("services/service-truck/enable")){
setprop("/sim/sound/voices/pilot", "Hey there! How can I help?");
}else{
setprop("/sim/sound/voices/pilot", "Goodbye, drive safe!");
setprop("/sim/sound/voices/copilot", "Thanks comrade!");
settimer(func{setprop("/sim/sound/voices/copilot", "Thanks comrade!");}, 2)
}