Jump to content

DST scripting help?


Recommended Posts

new to DST i was working on a character but my scripting knowledge is very limited, could someone help me with these perks?

1- being near an ally lowers my base speed

2-slow sanity regen

3-prey and monsters are neutral and do not attack me until i attack them (with exclusion of bosses if possible)

 

Link to comment
Share on other sites

3 hours ago, Okachov said:

1- being near an ally lowers my base speed

there is a component called PlayerProx, where you can set inst.components.locomotor.runspeed

3 hours ago, Okachov said:

2-slow sanity regen

there is also a component called aura, where you can call inst.components.sanity:DoDelta()

 

The third will be somewhat more tricky, you can make a comparison between neutral prefabs and hostile ones. You can make your self invisible with simply adding a "debugnoattack" tag, but I believe that is not what you want.

Link to comment
Share on other sites

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
 Share

×
  • Create New...