SirniNamaz Posted September 22, 2012 Share Posted September 22, 2012 if i create a server variable and one player triggers event that changes the server variable, will it be changed for all players? Link to comment
DiSaMe Posted September 22, 2012 Share Posted September 22, 2012 If you create a variable in the server, it won't be synced unless you script the syncing yourself. If you want an easy way to sync the data, use these functions: setElementData getElementData You can set the data of some element from the server or any client and that data will be synced for everyone. Link to comment
SirniNamaz Posted September 22, 2012 Author Share Posted September 22, 2012 but what do i do if i do not want to use thePlayer as element, i want to use somekind of element which is used for whole server not just one player Link to comment
DiSaMe Posted September 22, 2012 Share Posted September 22, 2012 If you don't want to use it on the player element, then don't. I never told you to use it on players. There are other elements, such as root, resourceRoot. You can also create your own abstract element using createElement function and then store the data to that element. Link to comment
SirniNamaz Posted September 22, 2012 Author Share Posted September 22, 2012 thanks, createElement is just what i needed 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