Jump to content

Recommended Posts

I want my character to be able to pick things with the pickable prefab without the animation (so instantly) with the "inst.components.pickable.quickpick" component. I already came up with a function to implement this, but I've run into some problems. It seems as though I might be putting the code into the wrong function in the [charactername].lua file. What function should I put it in? and do I need to assign the prefab to all the "pickable" things? If so, what function would I put that code in? I also have an "if" statement in my [charactername].lua that doesn't seem to be working. Can I put "if" statements right into the function like that and have the game still do what I coded it to do? or will the game not read it right?

 

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