Well, it seems that whenever this command is being executed during the init or setup phase, the game crashes in my case (if you've read some of my other posts, you'll know what I mean). So, is there any way to substitute this command with some form of for loop or something else which would be more efficient than the for loop? I ran the following test with X2 1.4.0.3 (no bonus scripts) in order to check if the game crashes only if the wait function is called in the main setup.* script, and it always crashes (no matter from within which script it is called during the init/setup phase).
executeme.xml:
Code: Select all
001 @ = wait 2000 ms
002 play sample: incoming transmission [PLAYERSHIP], from object Boron
003 return null
setup.test.xml:
Code: Select all
001 @ = [THIS] -> call script 'executeme' :
002 return null
P.S.
This is a semi-technical problem question, since I want to see if there's a workaround for the wait function.