Jump to content

InstanceData Scripts - need a bit of enlightment


Recommended Posts

None wouldnt cause crash with standard papyrus, but as its f4se function there maybe is no null check natively and it causes crash. Maybe you test to make sure which part causes ctd, getweight or just creating instancedata

Link to comment
Share on other sites

Ah, you may be right. Just creating the InstanceData didn't crash the game first time I tried if I remember correctly, so it must be the GetWeight(Owner akOwner) funcion.

Link to comment
Share on other sites

  • 1 year later...

I've tried something similar with the instancedata, but instead of getweight () use getarmorrating () for some armors.

when using this like

InstanceData:Owner thisInstance = Game.GetPlayer().GetInstanceOwner(xx)

with xx in the range from 00 to 30 I get only very seldom the correct result, instead mostly get armorrating = 0 (for all slots)

 

When i make a objectreference for my armor and use the version with the objectreference as the owner I've got always the expected result.

I do not know, for me that behaviour looks like a Fallout 4 bug.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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