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); }
public static void SetInterOwnerToMyself(Player player) { EntityDecoration.Set(player.Character, PlayerProperties.InteriorOwner, -1); }
public static void SetInteriorOwner(Player player, Player owner) { EntityDecoration.Set(player.Character, PlayerProperties.InteriorOwner, owner.Handle); }
public static void SetInteriorId(Player player, int interiorId) { EntityDecoration.Set(player.Character, PlayerProperties.InteriorId, interiorId); }