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 you make sure the default camera is NEVER selected

Here's the issue fellow Unreal engine-eers!

I have a set up that assigns cameras to each player. The number of players is determined by a UMG menu selection. So you'll see:

Please choose the number of opponents: 1 2 3

(I'm building a 4 player game, might expand later)

Upon making a selection, the players are spawned into the level (you + the number of opponents) and the camera is set to the player that will go first (Randomly determined in the first round).

In a 2 player example: It will set the camera to either player 1 or player 2. (Which is what I want) For some reason, it will also choose the default camera at random. (Not what I want)

Is there a way to remove the default camera leaving only 2 options to choose from or perhaps another solution that will yield the results I'm looking for?

Thanks in advance for any help you guys & gals can provide!

Cheers!

Alvin

Product Version: Not Selected
Tags:
more ▼

asked Feb 24 '15 at 12:59 AM in Blueprint Scripting

avatar image

AlvinKPollard
13 2 3 3

avatar image RimmyD Feb 24 '15 at 06:40 AM

Is your logic actually picking the default or is it displaying the default despite you trying to push a different camera as the target?

For clarification: if you print out your result from your random camera logic does it say that it picked the default? How are you picking cameras?

You should be able to figure out what error is not pushing the camera target but you can always try the AutoManageActiveCameraTarget option in the player controller. Turning it off may help.

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

1 answer: sort voted first

Hey RimmyD!

Thanks a bunch! That did it! :)

Cheers!

Alvin

more ▼

answered Feb 25 '15 at 02:30 PM

avatar image

AlvinKPollard
13 2 3 3

(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