Jump to content

Recommended Posts

I want to allow the deploying (planting) of a prefab only in certain ground. I tried to look at butterflie and pinecone, because you can't plant flower/tree on rocky ground, but even after a look at the deployable.lua, i don't see how it work. So i suppose (maybe wrong) that it filter rocky ground by default ?

 

Also, it is possible to decide that if not in the right ground it will enter a special state ? Like the withering of the grass in a previous version ?

 

Thanks ^^

look how it is done in this mod:
steamcommunity.com/sharedfiles/filedetails/?id=481031786

For trees, I think the only reason why they can't be on rocky are the terrain filters, but I may be wrong (see scripts/map/terrain.lua

Edited by Serpens
4 hours ago, Lumina said:

Thanks, i will look at it. It's just that i feel a little uncomfortable downloading a mod just to look at code and not really use the mod later.

rubbish ;)
Do you also feel uncomfortable to look a the game scripts? :D

You can add the author of the mod to your credits, to feel better ;)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...