SenL Posted February 3, 2016 Share Posted February 3, 2016 GLOBAL.ACTIONS.PLANT is for planting seed on a farm plot. What is the action for planting pinecone? How about butterfly (to become flower)? Thanks. Link to comment https://forums.kleientertainment.com/forums/topic/63725-globalactions-for-planting-pinecone/ Share on other sites More sharing options...
PanAzej Posted February 3, 2016 Share Posted February 3, 2016 (edited) Pinecones are deployables (flowers probably too), you could just look it up in Woodie's prefab: local function ondeployitem(inst, data) if data.prefab == "pinecone" or data.prefab == "acorn" then --inst.components.beaverness:DoDelta(TUNING.WOODIE_PLANT_TREE_GAIN) inst.components.sanity:DoDelta(TUNING.SANITY_TINY) end end So, basically you should make a "ListenForEvent", then check prefab of item you're deploying, and then make it do something. Edited February 3, 2016 by PanAzej Link to comment https://forums.kleientertainment.com/forums/topic/63725-globalactions-for-planting-pinecone/#findComment-717167 Share on other sites More sharing options...
SenL Posted February 3, 2016 Author Share Posted February 3, 2016 ok thanks!! Link to comment https://forums.kleientertainment.com/forums/topic/63725-globalactions-for-planting-pinecone/#findComment-717172 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