ositools icon indicating copy to clipboard operation
ositools copied to clipboard

Game.Math.DoHit() write error

Open PinewoodPip opened this issue 1 year ago • 1 comments

Extender Version

v60

Game Version

v3.6.117.3735

Bug Summary

Game.Math.DoHit() errors in v60:

Error while dispatching event ComputeCharacterHit: [string "builtin://Libs/Game.Math.lua"]:923: Cannot set property stats::HitDamageInfo::DamageList - cannot write properties of this type from hit.DamageList = Ext.Stats.NewDamageList()

Links

No response

PinewoodPip avatar Aug 30 '23 10:08 PinewoodPip

Hello,

I'm not sure if it's the correct solution, but are you using the hit from event event.Hit?

I had the same problem as you, I managed to bypass it by using hit = Ext._Internal._MakeLegacyHitInfo(event.Hit) and it works for me, but I'm not sure it's the correct way to solve it

Toijiro avatar Sep 06 '23 06:09 Toijiro