Jump to content

Recommended Posts

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 by PanAzej

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...