bandi94 Posted July 17, 2012 Share Posted July 17, 2012 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
nwmafia Posted July 17, 2012 Share Posted July 17, 2012 If you make it server side and client side, both you and clients will see it. Link to comment
bandi94 Posted July 17, 2012 Author Share Posted July 17, 2012 I will create the object server side and i want to rotate it on client side Link to comment
AMARANT Posted July 17, 2012 Share Posted July 17, 2012 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
bandi94 Posted July 18, 2012 Author Share Posted July 18, 2012 @ 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now