GTAGaming Forums

GTAGaming Forums (http://www.gtagaming.com/forums/index.php)
-   Grand Theft Auto IV Mods (http://www.gtagaming.com/forums/forumdisplay.php?f=318)
-   -   Add delay in .NET script? (http://www.gtagaming.com/forums/showthread.php?t=135010)

slayerxyz0 10-26-2012 06:01 PM

Add delay in .NET script?
 
Normally for a delay in .NET I would create a new thread and delay that thread so that it didn't interfere with the thread the application is running on. However, with GTA this seems to cause some crashing issues, so does anyone know a way to delay the script without freezing the game or causing the above error?

EDIT1:
I got around the issue since it had to do with animations but I would still like to know if a simple delay is possible.

EDIT2:
Never mind, I realized that there is a Wait() function.


All times are GMT -6. The time now is 09:43 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.