#[Resolved] Existing EquippedWeapon not dropping when picking up another weapon

3 messages · Page 1 of 1 (latest)

wanton marsh
#

Hi Everyone, I've reached Lesson 113 "Weapon Ammo" at about 21:06 Stephen talks about fixing the problem where the player can pick up a second weapon without dropping a previously equipped weapon. After following the last part of the lecture, it still wasn't working for me. I've run through the lecture a couple of times to check if I missed anything.
While debugging, it looks like I am carrying both weapons. Almost looks like the dropped function was not working even tho I checked that it is being invoked properly.

Any Ideas on how this happens? Am I having a problem with replication happening in the wrong order?

wanton marsh
#

Ok, When using the debugger, everything is working as expected. I suspect I have a race condition somewhere.

wanton marsh
#

I got it working. I restarted both Unreal and Visual Studio and rebuilt in VS. Seems to be working now.😀