if im reading this right you want to essentially "pause" the games functions after something happens like and RPG does with commands?
like if you fire off a torpedo, then the game pauses allowing you to make choices and decisions based on a set limit before everything restarts again real time?
(im following this and am interested )
Wrong
The game should not pause. The script should not pause.
The game must continue during the delay. The script must continue reacting to events and doing everything else it needs to during the delay.
Ergo, that's the reason for me mentioning MissionLib.CreateTimer(). It permits for a function to be called after a set delay (current time + delay) but does not pause the entire game or execution of the script in which it is called.
The problem with MissionLib.CreateTimer (and all timers it seems) is that they do not permit any arguments other than (pObect, pEvent)
To my knowledge all functions in BC that are triggered by a Totally Games timer have the format:
def Function(pObject, pEvent):
#code here
The question presented in this thread is whether it is possible to call a function such as:
def MyFunction(customArg1, customArg2, customArg3):
# use my arguments here
after a set amount of time with its arguments.
I hope I have been clear enough.