shavkacagarikia Posted May 24, 2018 Posted May 24, 2018 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
Hoamaii Posted May 24, 2018 Author Posted May 24, 2018 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.
erlinajabagat Posted August 31, 2019 Posted August 31, 2019 I've tried something similar with the instancedata, but instead of getweight () use getarmorrating () for some armors.when using this likeInstanceData: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.
Recommended Posts