Jump to content

Simpel question


bandi94

Recommended Posts

Hy i am back after 3 months i am back to do some new thing's to my server , but i forgot many thing's

At this time my friend's are not online (here is late afternoon) so to don't script any nonfunctional stuff i wan't to ask something.

I wan't to rotate an object after the Client Camera matrix whit "onClientCursorMove" now i know that some function's are sended to server and chnaged for all player's so if i create the object on server side , send the object to client and i rotate it on client side it will cange for all player's or only i will see it rotated ?

Thx

Link to comment

Use "triggerClientEvent" function:

  
triggerClientEvent("CameraRotate",myPlayer)--this makes camera rotate only for specific player; 
triggerClientEvent("CameraRotate",getRootElement())--this makes camera rotate for any player. 
  

You just need to pass required arguments in this function.

Link to comment

@ AMARANT i know how it's working but think a bit "onClientCursorMove" it's changing on evry mouse move on every FPS so if i make triggerEvent i will flood 30times/s the server that is not so good may be slow and lag

BTW i will try now my theory to create server side and roatate on client side

Yes it's working a server sided object i rotate it on client side and for all player's was rotated

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...