Cassandra Posted February 26, 2013 Share Posted February 26, 2013 Is there a way to get the return value of a function using triggerServer/ClientEvent? Link to comment
Castillo Posted February 26, 2013 Share Posted February 26, 2013 There's no way as far as I know. Link to comment
Cassandra Posted February 26, 2013 Author Share Posted February 26, 2013 Any alternatives? Link to comment
csiguusz Posted February 26, 2013 Share 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 Link to comment
PaiN^ Posted February 26, 2013 Share 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 ..! Link to comment
Anderl Posted February 26, 2013 Share Posted February 26, 2013 You could use element data, but element data does lag too AFAIK. Link to comment
DiSaMe Posted February 26, 2013 Share Posted February 26, 2013 There's no way to send the data between server and client without using any bandwidth. Link to comment
Cassandra Posted February 26, 2013 Author Share 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? Link to comment
DiSaMe Posted February 26, 2013 Share 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? Link to comment
Cassandra Posted February 26, 2013 Author Share 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. Link to comment
DiSaMe Posted February 26, 2013 Share 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. Link to comment
Cassandra Posted February 26, 2013 Author Share 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. Link to comment
myonlake Posted February 27, 2013 Share Posted February 27, 2013 Then use strings and convert them later to a number perhaps? 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