Jump to content

Need help understanding a script


Recommended Posts

Posted

I've been trying to understand a script to modify it but this specific one is just confusing me.

 

https://pastebin.com/9MT0uwFf

 

Specifically the line at number 16

 

SBA_Armor sbaArmor = actorRef.GetWornForm(thisSlot) as SBA_Armor

 

The only reference to SBA_Armor is this script attached to armors which designates the broken form for the armor piece.

 

ScriptName SBA_Armor extends Armor

MiscObject Property BrokenItem Auto

 

These are from the Bikini Armor Quest mod by Bakafactory.

  • 2 weeks later...
Posted

Looks like the mod adds an extra field (brokenitem) to the armor.

That line says it wants to treat that armor as one of these new extended types - that way it can use the brokenitem field when needed.

As it is extending armor, it only needs to show the additional bits over and above what armor already has.

 

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
  • Recently Browsing   0 members

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