Lumina Posted September 22, 2016 Share Posted September 22, 2016 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 ^^ Link to comment https://forums.kleientertainment.com/forums/topic/70346-deploying-a-prefab-only-in-specific-turf/ Share on other sites More sharing options...
Serpens Posted September 22, 2016 Share Posted September 22, 2016 (edited) 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 September 22, 2016 by Serpens Link to comment https://forums.kleientertainment.com/forums/topic/70346-deploying-a-prefab-only-in-specific-turf/#findComment-816879 Share on other sites More sharing options...
Lumina Posted September 23, 2016 Author Share Posted September 23, 2016 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. Link to comment https://forums.kleientertainment.com/forums/topic/70346-deploying-a-prefab-only-in-specific-turf/#findComment-817153 Share on other sites More sharing options...
Serpens Posted September 23, 2016 Share Posted September 23, 2016 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? You can add the author of the mod to your credits, to feel better Link to comment https://forums.kleientertainment.com/forums/topic/70346-deploying-a-prefab-only-in-specific-turf/#findComment-817192 Share on other sites More sharing options...
Lumina Posted September 23, 2016 Author Share Posted September 23, 2016 Yeah, i will probably do that Link to comment https://forums.kleientertainment.com/forums/topic/70346-deploying-a-prefab-only-in-specific-turf/#findComment-817258 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now