1. Good day !

    i tried a bit, but cant figure out how to allow the build of structures with no costs.

    void CanBuild(Planner plan, Construction prefab)
    {
    Puts("CanBuild works!");
    }

    returning null , of course does nothing.
    false/true just denies the whole build.

    i know, "just" returning true of false instead null would be way too easy.

    is there even a "easy" or short way?
     
  2. afaik the player needs basic building materials to actually place anything in the first place, so i dont think you could exactly make it "free" or cost 0 resources. Probably the best thing you could do would be to give the player x amount of resources after they have built the structure.
     
  3. yea. i saw that method in "auto build grades" plugin.
    wouldnt that solve itself when the player actually gets the resources BEFORE the entity is being build?
     
  4. You can add hidden slots into player's inventory with needed resources.
     
  5. Yes, i am very aware of this, I have a plugin that does this AntiItems for Rust | Oxide but as far as adding wood to these slots, it would cause problems when crating other items such as unlimited campfires etc.
     
  6. Just use Automatic Building Grades with the "nores" permission. :)
     
  7. Well. i only intended to use it for wood,stone building. general building. no deployables.

    Yea i know. we also got that plugin. and i tried to use code out of it already.

    "just" nores isnt working for me. wanted to create that with a IsPlayerInZone Check .