Cassandra Posted February 26, 2013 Posted February 26, 2013 Is there a way to get the return value of a function using triggerServer/ClientEvent?
csiguusz Posted February 26, 2013 Posted February 26, 2013 (edited) Send back the returned value to the client/server with an another triggerClient/ServerEvent. Edited February 26, 2013 by Guest
PaiN^ Posted February 26, 2013 Posted February 26, 2013 Send back the teturned value to the client/server with an another triggerClient/ServerEvent. Could work, But i don't recommend it .. Because adding to much triggers make lag ..!
Anderl Posted February 26, 2013 Posted February 26, 2013 You could use element data, but element data does lag too AFAIK.
DiSaMe Posted February 26, 2013 Posted February 26, 2013 There's no way to send the data between server and client without using any bandwidth.
Cassandra Posted February 26, 2013 Author Posted February 26, 2013 I want to use bandwidth but I don't want to use setElementData or another trigger function. Will it be possible to reference that variable?
DiSaMe Posted February 26, 2013 Posted February 26, 2013 Element data and event triggering are the only general ways to send the data between server and client. What's wrong about using those functions?
Cassandra Posted February 26, 2013 Author Posted February 26, 2013 Element data and event triggering are the only general ways to send the data between server and client. What's wrong about using those functions? Alright seem like I have to use that anyway. I have a problem though. Does anyone know why setAccountData doesn't set floating values? My player's position is a bit messed up for that.
DiSaMe Posted February 26, 2013 Posted February 26, 2013 I'm not sure what you mean. The only type you can use as account data is string. It all depends on how you convert the values between strings and other data types.
Cassandra Posted February 26, 2013 Author Posted February 26, 2013 I'm not sure what you mean. The only type you can use as account data is string. It all depends on how you convert the values between strings and other data types. setAccountData doesn't take in decimal values. It coverts them to whole number.
myonlake Posted February 27, 2013 Posted February 27, 2013 Then use strings and convert them later to a number perhaps?
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