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"

Pawn Location after Possession

Hi, after possessing a pawn i can't access location which is needed for camera blueprint, camera freeze at the start location of possessed pawn but does not move. After possesing player main character camera works fine.

camera actor alt text

player controller alt text

Thanks in advance !

Product Version: UE 4.12
Tags:
camera_actor.jpg (118.2 kB)
more ▼

asked Jul 13 '16 at 07:04 PM in Blueprint Scripting

avatar image

Haxor
28 1 3 4

avatar image TJ V ♦♦ STAFF Jul 13 '16 at 09:55 PM

Hi Haxor,

Just to get a better understanding of what you are trying to accomplish, could you describe your setup a bit?

Are you just wanting to move a camera from one possessed pawn to another? If so, you shouldn't need a camera actor, you would just need to blend the camera view as you possess the pawn.

avatar image Haxor Jul 14 '16 at 07:24 AM

Hi TJ Ballard,

Setup looks like this, 1 character, 1 vehicle , camera actor attached to the center of map so it's rotating accordingly to player location.

To get things harder I want it to be local multi-player with one shared view. But I need the camera to track only the pawns currently possessed by players.

As for the multi-player camera I have done this already in another project, here the possession is causing me troubles.

Hope this description is clear enough :) I should have posted it right away :) Thanks !

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

1 answer: sort voted first

Hi, Still scratching my head why this does't work BUT i figured out a way around :)

So i added another Actor, one for each player and attach it to currently possessed pawn, then camrea actor have to deal with only 2 actors to track position. Just not sure if its the right way to do it, but seems to be working with only one error alt text

alt text

alt text

camera_actor_2.jpg (161.0 kB)
pawn.jpg (117.1 kB)
error.jpg (42.2 kB)
more ▼

answered Jul 14 '16 at 12:03 PM

avatar image

Haxor
28 1 3 4

avatar image TJ V ♦♦ STAFF Jul 21 '16 at 07:21 PM

I don't see anything inherently wrong with your workaround setup, it should be fine in the long run.

As far as the 2 errors, if you replace the Attach/Detach ActorToComponent nodes with AttachToActor and DetachFromActor nodes, that should fix it. The depreciated nodes will eventually be removed, so it's good to future proof your project if you ever plan to upgrade versions.

avatar image Haxor Jul 25 '16 at 03:20 PM

Thanks a lot :) Feeling much more comfortable now :)

(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