Jump to content

Need help from an experienced scripter!


Givi88

Recommended Posts

Hi guys! I hope for your help! (Sorry for the shitty English, I'm writing from a translator ,I hope you understand me )
Guys, here is a standard scaling script. I, like many of you, use it for power armor 
 

Spoiler

ScriptName PowerArmorSizeMedium

Begin ScriptEffectStart

    SetScale 1.12

End


Begin ScriptEffectFinish

    SetScale 1

End

but I noticed one unpleasant feature. If an NPC kills another NPC in power armor, the scaling disappears, as the script is triggered - Begin ScriptEffectFinish SetScale 1

I opened the section 'Base Effect' and checked the box 'No Death Dispel' This helped in part, I noticed that now if a player kills an NPC in armor, the scaling is not reset. ( It may not be related to this )
I tried to add lines 'begin onDeath' but i think i'm doing something wrong. Of course you can change the values in the line 'Begin ScriptEffectFinish SetScale 1.2' this will work of course ,but this is a bad option, because if you remove the power armor from the player, the scaling will remain.
Guys, tell me what lines need to be written so that the scaling does not reset when the NPC dies?
I would be very grateful for help! 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...