Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
No connection to MT4
by JeyKey II. 10/29/26 09:34
Zorro plugin for Hyperliquid.xyz
by opm. 10/28/26 13:50
Icon "OP"
by JeyKey II. 10/27/26 07:03
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (EW_bytes, 1 invisible), 11,430 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
dabolong, MaliceTheMaker, Haitao_Ren, JimSimons, julienp
19249 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
10 Secs #161864
10/18/07 20:01
10/18/07 20:01
Joined: Oct 2007
Posts: 42
Minnesota, USA
Techd Offline OP
Newbie
Techd  Offline OP
Newbie

Joined: Oct 2007
Posts: 42
Minnesota, USA
Does of anyone no of a script that uses a counter or timer that can increase a value every 10 secs? Say I want a sound to play every 10 secs on timed bases and if key is pressed the timer/counter starts over.


Life is what you make it just like Games!
Re: 10 Secs [Re: Techd] #161865
10/18/07 20:50
10/18/07 20:50
Joined: Apr 2005
Posts: 3,076
Germany, NRW
rvL_eXile Offline

3D Artist
rvL_eXile  Offline

3D Artist

Joined: Apr 2005
Posts: 3,076
Germany, NRW
Try this

Code:


Var X;
Var Value;
Var Counter_Sec;

Function Counter
{
X%1; //Or Try "2"

If(key_ctrl==1)
{
X=1;
}
If(X==1)
{
counter_Sec+=1;
wait(-1);

}

}

Function Waiter
{
If(X==1)
{
Value+=1;
wait(-10);
}
}



Not tested... But it should work !

cYa Sebastian


Tutorials:
[Blender]Terrain creation ENG/GER
[Blender]Low Poly Tree Modeling
[GIMP]Create a Texture for Terrains
CLICK HERE


Re: 10 Secs [Re: rvL_eXile] #161866
10/18/07 22:36
10/18/07 22:36
Joined: Oct 2007
Posts: 42
Minnesota, USA
Techd Offline OP
Newbie
Techd  Offline OP
Newbie

Joined: Oct 2007
Posts: 42
Minnesota, USA
thanks! rvL_eXile


Life is what you make it just like Games!

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1