AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Adding pause time (https://forums.alliedmods.net/showthread.php?t=54481)

bwgrubbs1 04-27-2007 05:14

Adding pause time
 
What would be a little code to add a defined amount of time to wait between commands ?

mogel 04-27-2007 05:59

Re: Adding pause time
 
Moin,

Code:

public Func1() {
  foo()
  set_task(0.1, "Func2")
}
public Func2() {
  bar()
}

all other will create "lag's" on the server

hand, mogel


All times are GMT -4. The time now is 06:41.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.