serjsar Posted November 10, 2016 Report Share Posted November 10, 2016 Hi! how to save karma after death? Link to comment Share on other sites More sharing options...
0 vbawol Posted November 10, 2016 Report Share Posted November 10, 2016 Untested but this should work, add the code below just before this line: '[_playerObj, _defaultVars] call EPOCH_server_savePlayer;' https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_server/compile/epoch_player/EPOCH_server_deadPlayer.sqf#L51 // preserve vars _preserveVars = ["Karma"]; { _cIndex = EPOCH_customVars find _x; _defaultVars set [_cIndex,_vars select _cIndex]; diag_log format["Epoch: DEBUG: preserved %1", _x]; } forEach _preserveVars; Link to comment Share on other sites More sharing options...
0 serjsar Posted November 11, 2016 Author Report Share Posted November 11, 2016 15 hours ago, vbawol said: Untested but this should work, add the code below just before this line: '[_playerObj, _defaultVars] call EPOCH_server_savePlayer;' https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_server/compile/epoch_player/EPOCH_server_deadPlayer.sqf#L51 // preserve vars _preserveVars = ["Karma"]; { _cIndex = EPOCH_customVars find _x; _defaultVars set [_cIndex,_vars select _cIndex]; diag_log format["Epoch: DEBUG: preserved %1", _x]; } forEach _preserveVars; it doesn't work( Link to comment Share on other sites More sharing options...
0 vbawol Posted November 11, 2016 Report Share Posted November 11, 2016 Your right as the player is dead, the default vars are being used instead. I will try add a proper system to persist certain vars past player death soon. Link to comment Share on other sites More sharing options...
0 serjsar Posted November 11, 2016 Author Report Share Posted November 11, 2016 It would be great! I added trader who has a variety of products, depending on the Karma of the player. Link to comment Share on other sites More sharing options...
0 Drokz Posted February 22, 2017 Report Share Posted February 22, 2017 Any updates to this? Link to comment Share on other sites More sharing options...
0 Aggro Posted February 23, 2017 Report Share Posted February 23, 2017 I have asked couple of questions yesterday and I will wait for a reply but it does feel like I am coming back to this forum too late, it looks like everyone has left or got exiled? :D I see a lot of questions and post but no real effort from anyone in the community to help. Starting to think building a new epoch sever and keeping that community going is going be tougher task than i initially thought. Link to comment Share on other sites More sharing options...
0 Drokz Posted February 24, 2017 Report Share Posted February 24, 2017 Yea its hard to get some players on the server... they tell me they like my server but they leave after a few days because the player count doesnt increase... but i dont give up yet :D I will have a look at ur questions when im back home. Maybe i can help you a bit Link to comment Share on other sites More sharing options...
Question
serjsar
Hi!
how to save karma after death?
Link to comment
Share on other sites
7 answers to this question
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