barbolani 198 Posted April 11, 2016 Hi! I am not sure if I am missing something, so I post here. Ranks in my mission are important and upgradeable, so I need to preserve them on respawn. I think some rank commands documentation in BIkI lack of info about globallity in MP on those commands. So, my onPlayerRespawn.sqf among other things does this: _nuevo = _this select 0;_viejo = _this select 1; if (isNull _viejo) exitWith {}; _nuevo setRank (rank _viejo); Script runs flawlessly (no .rpt error and other actions pre and post this code run well) But sometimes, in a way I cannot reproduce, I find players dying as SERGEANTs and respawning as PRIVATEs. Does someone know this issue and workarounds? Thanks in advance. Share this post Link to post Share on other sites
Nikander 123 Posted April 11, 2016 Does someone know this issue and workarounds? Hi barbolani, I don't know that issue in particular, but I would try this with onPlayerKilled.sqf: player setVariable ["save_rank", rank (_this select 0)]; Then, with onPlayerRespawn.sqf: player setRank (player getVariable ["save_rank", "PRIVATE"]); Just an idea, Nikander 2 Share this post Link to post Share on other sites
barbolani 198 Posted April 11, 2016 EDIT: BIG SORRY You were totally true. Rank of a dead unit is empty string. So seting a variable with the rank, and seting rank to that variable was the solution. BIG THANKS!! 1 Share this post Link to post Share on other sites