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"

Some actors wont fire code if more than one is in level

So i have a base attachment actor class. I then made two child actors from that base actor class and made them specific actors like (sight attachment) (magazine attachment) that can be picked up and if hovered over a gun can be attached to it via button press.

My problem is, they both work perfectly fine and allow me to pick up and attach to the gun without fail ONLY IF they are the only actor in the level. If i have both attachments on the table to grab and test out, i can grab either one just fine but neither will attach. they will only attach again if i delete one of the two and test again.

IDK whats going on but i need to be able to have them exist and work in the level at the same time, otherwise my game wont work.

Product Version: UE 4.21
Tags:
more ▼

asked Jan 21 '19 at 03:08 AM in Using UE4

avatar image

CatsyPatz
3 1 1 2

avatar image dabs863 Jan 21 '19 at 04:17 AM

can we see screen shots of the attachment code

avatar image CatsyPatz Jan 21 '19 at 07:02 AM

This is in the VR Player Blueprint, idk any easier way to do the different codes based on what attachments or anything so i have it set like this for now.

alt text

This is the grab interface for the grabbing them alt text

This code is in both magazine attachment and sight attachment, basically the same it just does slightly different things for the actor it is.

alt text

and the final stuff for attaching the actors to the gun itself.

alt text alt text

avatar image plangton Jan 21 '19 at 12:12 PM

in the first image you have the same event being used three different time. this is problematic and you should only use it once.

avatar image CatsyPatz Jan 21 '19 at 06:32 PM

Even with having so many different codes and variables to check? How should I do it to where it all connects just to the one without messing up from too much coffee connected to one node? Or would it just work with if this is false then this, if false then this for every single thing I'd use it for

avatar image CatsyPatz Jan 21 '19 at 08:28 PM

I tried it with sequence and it still only lets me pick them both up and i can only attach the sight but i cant attach the magazine. as long as both are on there it still is messing up. Idk what to do.

alt text

avatar image plangton Jan 22 '19 at 02:57 PM

in your grab event code, you set "basic sight in l hand" without checking what are you grabbing. is that correct?

avatar image CatsyPatz Jan 23 '19 at 02:34 AM

No. In the magazine it has the same code but sets magazine in left hand rather than basic sight.

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

1 answer: sort voted first

Hello,

Select your InputAction and uncheck Consume Input.

more ▼

answered Jan 21 '19 at 07:16 AM

avatar image

bstt
106 1 3 1

avatar image CatsyPatz Jan 21 '19 at 08:12 AM

I got to go to bed now, but just tried it before shutting down my pc. It didn't work. With both of them in the scene i could still pick up and attach my sight, but i can only pick up the magazine, not attach it at all. going to sleep confused i guess lol

(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