How can i fix collision issue with my wepon pickup and my zone

Hay there iam working on a game like pubg and i got stuck at a point that my wepon pickup system works with collision and my zone which shrinks and if were out of it give damage to us also works with collision so when my zone spawn’s the widgit shows up to pickup wepon and when i pickup wepon it gives me damage so is there a way to fix this issue or should i use line trace to pickup wepon??

My english isn’t that good but i’m not able to understand what is your problem, i apologies if it is my fault. That i understand is that you don’t want collision to be enable for your spawned zone?

Hello. Are you trying to remove collision from ur weapon after picking it up

yes but i the problem is that the i have a hud showing to pickup wepon which only shows when the player collides to it so when zone spawns the hud shows up but i want to show when iam in collision of it so should i use the Collision the mesh of my zone actor to give damage ???

your english is incomprehensible dude. there is no clear and explained thought in your posts. you also have everything in one long sentence. you go from talking about a hud, to collision, then randomly to damage.

if you only want the widget for the pickup to show when the player overlaps the weapon then just script it that way. on begin overlap → create widget → add to viewport. on end overlap-> remove from parent. you will also want to check the overlapping actor to make sure its a player.

as for the damage theres many ways to accomplish that part. you could have a script in the level bp for example that gets all actors not overlapping the safe zone and apply damage at a regular interval.

hello. You can use the destroy component to remove the collision you are using for example sphere collision . for the safe zone : you can create an event or function , telling the game not to damage the player when in the safe zone only.

If you’re using a box collision for weapon pick up then you must attach the box to the mesh of each item you are spawning for pick up.

If you’re referring to your own weapon dealing damage to you, then you need to set the box collision or line trace for that weapons damage to ignore ‘Self’. Therefore, when you swing the weapon, the weapon might collide with you and now you have it set to ignore you (The player holding the weapon).