- 0
Saving to a Character
-
Similar Content
-
- 7 replies
- 3519 views
-
- 0 answers
- 1744 views
-
- 0 replies
- 1175 views
-
Vehicles Repairing Themselves On Server Restart (DETAILS UPDATED)
By 2DayZ2Retirement,
- dayz epoch
- vehicles
- (and 1 more)
- 1 reply
- 1410 views
-
- 1 reply
- 1317 views
-
- Advertisement
Question
looter809
So I have heard and seen that you can save settings to a character. For example, a player changes his view distance and after logging back in it will keep that setting he has changed.
The way I want to use this: I have some music that plays when a player loads into the server, and I am trying to allow them an option to turn it off permanently if they decide to. I heard something about profileNamespace is what I need to do, but I do not know how to do this. I just need some basic information on how to do such a thing, I can figure out how to make the option for the player via right click option or scroll wheel option, but I am confused on most of the other stuff.
In my rules.sqf,
and I know I would do something like
_loadMusic = ??? if (_loadMusic) then { playSound "introSong"; systemChat "Welcome!"; };
But from there, I don't know much else of what to do. Maybe it's really simple and easy and I just don't see it, or maybe I have to define a variable for the toggle option of the music in a bunch of complicated ways.
Does anyone have any knowledge they can share with me? Thanks!
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now