pickup item after event
I am working on a game in third person template. i want to talk to a character using widget blueprints and then i want to be able to only pick up items once finished speaking to that character. could someone please explain to me in simple terms of how to do this and which graphs and nodes to use?
it kind of depends on how your doing your pickup interaction. for a basic system where you have a interaction like overlap item, press a input key, key calls event in pickup, then you would just need to insert a check before running any script past the key input. so for example you would have: input event E -> get bool variable (named CanBePickedUp?) -> branch -> if true execute pickup script, if false do nothing. then all you would need to do is to have your npc have a reference to the pickup item and set the variable to true once the player has talked to them. for this part i would either have a public variable in the npc or you could do that part in the level bp where references are easy to get.
answered Apr 14 '19 at 12:30 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here