Closed goldenguy00 closed 2 hours ago
ye its intangible body keeps on walkin
Can you send the full log? I've added a nullcheck to the problematic line of code, but still, it should've left the state when it died. Instead it is stuck in that state, trying to fire, despite the fact that its master is long gone.
My only guess is that spider died and somehow run state switch code on the same logical frame and instead of dying it is now stuck running around trying to shoot. With https://github.com/viliger2/RoR2_EnemiesReturns/commit/642e1bda7a73d3bdbd23b038e9a6a196400f206d I've added nullchecks to the state, but that doesn't fix the issue of masterless spider running around.
sick
[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: EnemiesReturns.ModdedEntityStates.MechanicalSpider.DoubleShot.Fire.FixedUpdate () (at:IL_00A1)
RoR2.EntityStateMachine.ManagedFixedUpdate (System.Single deltaTime) (at :IL_001D)
RoR2.EntityStateMachine.FixedUpdate () (at :IL_0006)
just keeps getting spammed, probably died and cant exit the state cuz of nre