Hello, Im using MA to spawn candles (smallcandleset, largecandleset), but it spawn them turned off, and when manually ignited, they burn out after while. I hacked together plugin that fixes it, but it affects all candles obviously and I dont like that. Would it be in plugin scope to deal with candles in MA, so I dont need to use my plugin for candles? Or even better would be OnMonumentAddonSpawned hook for modifications of items spawned by MA. Or is there another way that I missed?
namespace Oxide.Plugins
{
[Info("Candles", "marcuzz", "0.0.1")]
[Description("Lights candles on spawn.")]
public class Candles : RustPlugin
{
void OnEntitySpawned(Candle candle)
{
if (candle == null)
return;
if (candle.CanIgnite())
{
candle.burnRate = 0;
candle.Ignite(candle.transform.position);
}
}
}
}