I would like to make an item from the inventory appear in front of my character. However when I use “Attach Actor To Component” the character flies away with the object in front of him.
sounds line a collisions problem: your object collides into character and they try move away from each other, but unfortunately they are attached one to another so they keep flying.
The simple solution would be to disable collision on item from inventory’s mesh (and its other components if any)
Make actor that reads location and forward vector of character (using tick).
Then make it update self location to location of character plus (some value times forward character vector; some value times right vector; some value times up vector) to make offset.
However remember this solution is for single item and single player (it is bit heavy to make multiple items like that at once).
When you have that actor , add logic to hide it (change visibility( and toi change its mesh component.