Hey all, looking for a way to reload assets/prefabs/deployable/vendingmachine/vending_mapmarker.prefab
I deleted it in attempt to remove my spawn.entity vending_mapmarkets
- any suggestions to load them back would be amazing, my community is wtfing at me LOL. (Community server too so trying not to use RustEdit)
Reloading/restoring prefabs deleted?
Do you mean you ran this command?
del assets/prefabs/deployable/vendingmachine/vending_mapmarker.prefabIf so, I think the map markers should come back for player vending machines simply by toggling broadcasting. The mapmarkers for monument vendors might be a little more tricky, but if toggling player machines works, I may have a solution for NPC machines
Merged postTry this
using Oxide.Core.Libraries.Covalence;
using System.Linq;
namespace Oxide.Plugins
{
[Info("FixMapMarkers", "Rhialto", "0.1.0")]
[Description("Calls UpdateMapMarker() on all vending machines")]
public class FixMapMarkers : CovalencePlugin
{
[Command("vend")]
private void Vend(IPlayer iPlayer, string command, string[] args)
{
var machines = BaseNetworkable.serverEntities.OfType<VendingMachine>();
foreach (VendingMachine shop in machines)
{
shop.UpdateMapMarker();
}
iPlayer.Reply("Updates MapMarkers for " + machines.Count() + " vending machines");
}
}
}