778 {
779
780 if ( player )
781 {
782 array<ref Param> rpc_params = new array<ref Param>;
783
784
786
787
788 array<ref ModifierDebugObj> modifiers = new array<ref ModifierDebugObj>;
789 mods_manager.DbgGetModifiers( modifiers );
790
791 float param_count = ( float ) modifiers.Count();
792 rpc_params.Insert( new Param1<int>( param_count ));
793
794
795 for ( int i = 0; i < modifiers.Count(); ++i )
796 {
797 int id = modifiers.Get(i).GetID();
798 string name = modifiers.Get(i).GetName();
799 bool active = modifiers.Get(i).IsActive();
800 bool locked = modifiers.Get(i).IsLocked();
801
802 rpc_params.Insert(
new Param4<int, string, bool, bool>(
id,
name, active, locked ) );
803 }
804
805
806 GetDayZGame().RPC( player,
ERPCs.DEV_RPC_MODS_DATA, rpc_params,
true, player.GetIdentity() );
807 }
808 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
void ModifiersManager(PlayerBase player)