I want my character to drop a pickup when it dies

You want to create a pickup class for the object the player drops; and Spawn Actor from Class at player’s location just before they die.