HELP!!! NPC Not attacking TPC with weapon after TPC respawns.

This is for a Beat Em Up type game. The NPC goes to and picks up a bat, and hits the TPC till he has no more health, and then when he respawns, the NPC is just using punches.

I have got it narrowed down to this switch on ENUM.

If I bypass there where it goes to the bat, it works after a respawn. You can see that enum switch is working here in this video.

For reasons I don’t understand it is like that ENUM is being changed when the TPC respawns.

The NPC weapon ENUM is being set inside of the weapon (bat) bp here.

Any help is greatly appreciated, thanks.

Just solved it, essentially what I did was make another ENUM with 3 options, none, TPC has bat, and NPC has bat. I made a variable in the game instance, set it to that ENUM. Then went back in the weapon bp and set that game instance variable to NPC attached when the NPC attached. And in the NPC bp I changed out that switch with the GI one. Seems to have alleviated the problem…for now lol. But I would still like to know what was going on with that enum before, if anyone thinks they know please drop me a message, thanks.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.