Hello community!
Can anybody help me to make a simple plugin for new Rust plants genetics manipulation?
For now I just use this dumb code for fast clones selection:
private void OnEntityBuilt(Planner planner, GameObject seed)
{
var player = planner.GetOwnerPlayer();
var imSeed = seed.GetComponent<GrowableEntity>();
if (player == null || !player.IsAdmin)
{
return;
}
if (imSeed != null)
{
NextTick(() =>
{
imSeed.ChangeState(PlantProperties.State.Fruiting, false, false);
});
}
Anybody knows how to make access to GrowableGene.Set(global::GrowableGenetics.GeneType geneType, bool firstSet = false) class ?