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"

Make a props follow the camera

Hello I want to make props follow the camera ( follow the cursor of the player ) and levitate (as was done in Skyrim for example ) But i don't know how i can do this :/ Can you help me ?

Product Version: UE 4.11
more ▼

asked Apr 28 '16 at 09:53 AM in Blueprint Scripting

avatar image

10 2 7

avatar image ViceVersa Apr 28 '16 at 06:27 PM

i never played skyrim, but there is a node called set actor location that you can use in blueprints, you can use that in the tick event with the x and y set to your cursors x and y and the z to your cursors z plus 10 or something like that

avatar image cyadic Apr 28 '16 at 08:24 PM

Thank you all :D but i find a way to do it : I go to the First Person Camera blueprint ![alt text][1] ![alt text][2] ![alt text][3] And than i make a PhycisHandle and I link it to a scene component ![alt text][4]

I hope it's can help :D [1]: /storage/temp/88802-pickupprops1.png [2]: /storage/temp/88805-pickupprops2.png [3]: /storage/temp/88809-pickupprops3.png [4]: /storage/temp/88810-pickupprops4.png

pickupprops1.png (278.3 kB)
pickupprops2.png (285.9 kB)
pickupprops3.png (266.4 kB)
pickupprops4.png (220.8 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

you can use the Deproject Screen to World node. grab the mouse position and it will return a world position. Then transform it however you want in 3D space to account for offset.

more ▼

answered Apr 28 '16 at 06:46 PM

avatar image

2.1k 104 73 163

(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