Jump to content

Problem with getLatentEventHandles


Bonsai

Recommended Posts

Hey Guys,

I was just trying to use "getLatentEventHandles" clientside, but it doesn't seem to work.

I triggered a very slow latent event, made one client and one server-side command to test that.

Only the serverside command returned the correct value.

Is this function not working the way I think on clientside or is there a different problem?

Bonsai

Link to comment
  • Moderators

What is the bandwidth limit? How large is the transfer? And do you have ping in your test server?

And how is your code structure...

Test code, you can use.

addEventHandler("onClientRender",root, 
function () 
dxDrawText(#getLatentEventHandles(),300,300) 
end) 

Link to comment
What is the bandwidth limit? How large is the transfer? And do you have ping in your test server?

And how is your code structure...

Test code, you can use.

addEventHandler("onClientRender",root, 
function () 
dxDrawText(#getLatentEventHandles(),300,300) 
end) 

Well, I already tested and its not a that complicated task.

Code and other stuff doesn't have much to do with the problem.

Clientside function returns latent events triggered from the client, serverside - from the server. Trigger client with information to know server data.

That seems to be the problem then..

Pretty bad problem even. This way the server has to do the check for all players and send it to them.

That kinda sucks.

Anyway, thanks for making this clear.

Link to comment
If you already tested everything, then you would know that directly after execution of the function triggerLatentServerEvent, there is at least one handle from getLatentEventHandles().

Right, but it was triggerLatentClientEvent, therefore serverside, then the client doesn't seem to know about the handles.

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...