function replicatedWritableCvar( | sv_cvar, | | cl_cvar, | | default_value, | | save, | | notify, | | access | ) |
|
This function is mainly intended for use with the menus. This function is very similar to creating a replicated cvar with one caveat. This function also creates a cvar on the client that can be modified and will be sent back to the server. The value of the client cvars are updated on spawn menu open and only sent back to the server if changed on spawn menu close.
Parameters
sv_cvar | The string of server side cvar. |
cl_cvar | The string of the client side cvar. THIS MUST BE DIFFERENT FROM THE sv_cvar VALUE. |
default_value | The string of the default value for the cvar. |
save | Boolean of whether or not the value is persistent across map changes. |
notify | Boolean of whether or not value changes are announced on the server |
access | The string of the access required for a client to actually change the value. |
Returns
The server-side cvar object.