x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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??

Product Version: UE 4.19
Tags:
more ▼

asked Oct 02 '18 at 06:54 PM in Blueprint Scripting

avatar image

Wethebestcontent
5 2 5

avatar image ElFab Oct 02 '18 at 07:12 PM

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?

avatar image Shadow Boss12 Oct 02 '18 at 07:49 PM

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

avatar image Wethebestcontent Oct 03 '18 at 05:58 PM

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 ???

avatar image ThompsonN13 Oct 03 '18 at 10:05 PM

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.

avatar image Shadow Boss12 Oct 03 '18 at 10:22 PM

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.

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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).

more ▼

answered Oct 03 '18 at 10:58 PM

avatar image

Debaucher
46 5 8

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question