Jump to content

Recommended Posts

So, I've been working on how my Character would play out in DST but I'm a bit stumped on how to actually code it in. So, if anyone knows, Would you be so kind to reply and answer these:
 

  • How can I make the prototyping sanity gain smaller?
  • How do I animate with Spriter?
  • Is there a way I can make an event happen around my character? (Ex: My character is a set distance from something and one of his mechanics comes into play)

 

 

Link to comment
https://forums.kleientertainment.com/forums/topic/114294-mod-questions/
Share on other sites

Check out the builder component function UnlockRecipe- this is what gives the sanity to the player, so you'll want to do some hooking with it.

Spriter insofar as I know is like Flash.  I wish you luck with its use.

The most common way for the third thing is to create a periodic timer on the player in the server's master postinit callback.  You'd then poll for entities that you want with TheSim:FindEntities and turn on the feature if it is not turned on already.  Likewise if that fails then turn off the feature if it is not already.

  • Thanks 1

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