View Single Post
  #6  
Old 07-17-2010, 04:42 AM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
Quote:
Originally Posted by fowlplay4 View Post
There's a delay in between the triggerserver and onActionServerSide because it has to send data from the client to the server.

Try this code:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
this.scheduleevent(1"ScheduledEvent"timevar2);
}

function 
onScheduledEvent(init) {
  
player.chat "This took event " timevar2 init " seconds!";

Well it seems to come back early effortlessly on larger numbers like 1 second +. however when i tried it at ~0.095 seconds (roughly the amount of time in question) it struggles to go below ~0.13. usually remains near the 0.19 mark. So I guess I might need to have to make due with the small delay on the quicker weapons.
__________________
MY POSTS ARE PRONE TO EDITS!
Reply With Quote