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"

Another Work Around For Get All Actors Of Class?

I do not understand how to solve this problem, yet I do understand it. The best way to explain it is that I set up a camera system where when the player goes up to an ammo box and presses "Q" the camera view will switch and transition to view the content inside the ammo box. I set this up with a get all actors of class node since that is the only way I know how to switch camera views within an actor (I do understand setting up cameras in level BPs. It is very much different than doing so inside an actor though) alt text alt text

Here is the part I don't understand how to work around. In the first screenshot I circled the number inside the array get a copy because that number refers to the placed ammo box on the level such as in the second screenshot I labeled the ammo boxes I placed in order. The camera will always activate ONLY on the first placed ammo box rather than the one I would walk up to. When ever I take the Ammo Box ordered as "0" the camera would then switch to Ammo Box "1" when I walk over to Ammo Box "2" to see its contents.

The Camera is completely dependent on the order I placed the ammo boxes. Is there a way I can work around this Get all actors of class node to switch camera? I cannot believe how difficult it is just to have a simple camera switch. Wish this could be easier.

Product Version: UE 4.21
Tags:
more ▼

asked Apr 14 '19 at 07:35 PM in Blueprint Scripting

avatar image

Voyager_871
8 2 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

I solved my problem! I took the "Set view as target blend" and from the New View Target connection I dragged off of it and placed a "get a reference to self" node there!

more ▼

answered Apr 14 '19 at 05:47 AM

avatar image

Voyager_871
8 2 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

you beat me too it but heres an answer anyways. you could have an event such as begin overlap, then take the other actor and cast to the players class to ensure its a player overlapping and not a random object. then you can get the controller and cast to player controller, we do this instead of getting player controller so that it is more adaptable and can be used with many players easily. then you use a set view target with blend and have the new target just be self. you can also repeat this process for end overlap and set the new target back to the player.

alt text

capture.png (283.3 kB)
more ▼

answered Apr 14 '19 at 09:56 PM

avatar image

ThompsonN13
10.1k 33 10 25

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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