Setting derived statistic? ( Critical chance )

Post » Sun Dec 21, 2014 5:36 pm

Hi

I'm trying to get my NPC to always do a critical hit with their knife.

I'm definitely not going to make a custom weapon ( ... because then I'd have to debug every situation where the player could get that weapon )

Any thoughts?

Thanks!

User avatar
casey macmillan
 
Posts: 3474
Joined: Fri Feb 09, 2007 7:37 pm

Post » Sun Dec 21, 2014 11:54 am

UDPATE: Actor.SetActorValue StatName:actorValue Value:int

Works very well for this.

Example: Actor.SetActorValue MeleeDamage 15

Pretty much it's like a critical hit each and every time.

After the target is dead I reset - - - Actor.SetActorValue MeleeDamage 2

Looks Good!

User avatar
Trish
 
Posts: 3332
Joined: Fri Feb 23, 2007 9:00 am


Return to Fallout: New Vegas