Пример #1
0
        public static void SetFlag(Player player, PlayerFlag flag, bool toggle)
        {
            BitSet flags = GetFlags(player);

            if (toggle)
            {
                flags.Set((int)flag);
            }
            else
            {
                flags.Unset((int)flag);
            }

            EntityDecoration.Set(player.Character, PlayerProperties.Flags, flags);
        }
Пример #2
0
 public static void SetInterOwnerToMyself(Player player)
 {
     EntityDecoration.Set(player.Character, PlayerProperties.InteriorOwner, -1);
 }
Пример #3
0
 public static void SetInteriorOwner(Player player, Player owner)
 {
     EntityDecoration.Set(player.Character, PlayerProperties.InteriorOwner, owner.Handle);
 }
Пример #4
0
 public static void SetInteriorId(Player player, int interiorId)
 {
     EntityDecoration.Set(player.Character, PlayerProperties.InteriorId, interiorId);
 }