Jump to content

Recommended Posts

so, for some reasons whenever I try to add a new component to the PalmTree, it doesn't seem to add globally to all the trees just to new spawned ones
 

Quote

if not inst.components.activatable then
        inst:AddComponent("activatable")
    end

It just simply sits in the PostInit function. I'd be glad if someone helped with this and also another problem I had is
I can't seem to change the Verb of the component, I'd prefer to add my own one, but I tried with a lot of the default ones, nothing seemed to work
 

Quote

inst.components.activatable.getverb = function() return "WHACK" end

this also just sits in the function, it's beeing added to the palmtree_tall prefab

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