I've been trying to delay a command with "delay" or otherwise for at least two hours now! It's about a scripted process (specific scan), where first Betty says something, then a sound comes and only at the end, after 4-5 seconds, the action takes effect.
Unfortunately, neither "Delay" nor "Wait" works, although both are used by Egosoft in the MD scripts. Everything is actually explained well in the Mission Director Guide. Nevertheless, it does not work.
What am I doing wrong? Here is the code:
Code: Select all
<do_if value="global.$mhklongrange == 'on'">
<speak actor="player.computer" page="10002" line="[201, 432, 401]" priority="90" />
<play_sound sound="'cpit_fight_screen_on'" type="ui"/>
<delay exact="6s"/>
<speak actor="player.computer" page="10002" line="203" priority="90" />
<set_known object="$thing" known="true" />
</do_if>
Schmollo aka Trajan from Olb
Translated with www.DeepL.com/Translator (free version)