Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EA 3.0.21]Wait/Timer/Tick/Delay in event system.


iraasta
 Share

Recommended Posts

Hi, I'm really missing that and writing in main EA topic makes no response so i came here.

Can anyone help me and say what do I need to do to add Waiting option to Events?

I'm new to VB, i can do some basic stuff but I'm trully confused with the way GetTickCount is working.

Can anyone explain it to me?

Thanks ![:lol:](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/laugh.png)
Link to comment
Share on other sites

In the engine something like a stopwatch is initialized. It is set to a certain tick. (250 i think) There is a tick event for this timer. It is enabled every tick i.e every 250 milliseconds. What GetTickCount does is it counts how much ticks has finished. (how much such 250ms has gone by).

Hope you understand this.

EDIT: Did you mean how the GetTickCount works?

For the waiting you can add a long somewhere (say eventrec for players or something). Just compare the current tick with the long. If the current is greater than do something. (Not 2 sure)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...