Jump to content

Need help with scripts


Recommended Posts

Hello there, i'm currently working on a weapon/armor pack and i need to figure out how to make few things work and i would really appreciate some help with scripts

 

1. I'd like to know how to add stats to weapon that will slow player's attack speed/movement speed etc.

 

I know how it looks in character prefabs - 

inst.components.combat.min_attack_period = 1.0 

stuff like that, but i don't know how to apply that to weapon

 

Same goes for helmets and armor, how do i apply speed, temperature resistance, fire damage reduction etc?

 

2. Is it possible to make hats completely hide parts of the body like head/hair/face?

 

I tried owner.AnimState:OverrideSymbol("swap_head", "hat_bee_bw_swap", "swap_head") ,but that doesn't work

I think armor hides torso when its equipped

 

 

3. Is it possible to make armor with texture and put it in amulet slot so it always shows on a character and overlays default armor texture?

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