I spawned one of those military flamethrower prefabs and now I can't remove it at all, someone help lol
Help me lol!
try this. save as KillFlame.cs go near the flame and type /kf
using System.Linq;
namespace Oxide.Plugins
{
[Info("Kill Flame", "bsdinis", "0.0.1")]
class KillFlame : RustPlugin
{
[ChatCommand("kf")]
void KF(BasePlayer player, string command)
{
if (!player.IsAdmin) player.ChatMessage($"Unknown command: {command}");
else foreach (BaseEntity entity in BaseNetworkable.serverEntities.ToList())
{
if (entity == null || UnityEngine.Vector3.Distance(player.transform.position, entity.transform.position) > 5f || entity.ShortPrefabName != "militaryflamethrower.entity") continue;
player.ChatMessage($"Killed {entity}");
entity.Kill();
}
}
}
} use object remover `object SHORTNAME action remove radius N`
or just do not spawn shit on your live server :D
I made this sh*t long time ago and just told to my players who asked... glitched from the game, will be fixed next wipe... problem solved