The best way to share player data across scripts
Posted: Sun May 13, 2018 1:48 pm
Hi, I'm making a mod which requires an extra data flag (string or enum) to be attached to players. Is it possible to store an array of this flag (and a corresponding array of player_index to map the two) that can be used across scripts in control.lua, or is there some way I can use flags in a LuaPlayer entity to store this information. Note that I can't use the LuaEntity LuaPlayer.character for this because these flags need to be stored after the players die.
Thanks in advance,
durodur
Thanks in advance,
durodur