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"

ingame "compass"

Hi Guys, i am trying to create an ingame "compass"-like help that let me guide the player to different targets i can set. (just like the game crazy taxi (http://en.wikipedia.org/wiki/Crazy_Taxi)

i already tried to modify the commentbox from the blueprint example content (because it faces already a set position etc) but it didn´t work :(

alt text

The Test-Mesh i used flows fixed (in the world) in front of the player-camera and not facing the target i entered (position would be ok, just changing a target mesh would be the best solution)

alt text

Maybe someone can help me, that would be awesome :D

Product Version: Not Selected
Tags:
arrow_bp.png (146.7 kB)
arrow_002.jpg (487.4 kB)
more ▼

asked Nov 11 '14 at 10:14 AM in Blueprint Scripting

avatar image

tuneful
16 5 7 12

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

2 answers: sort voted first

Hey tuneful-

Jacky's explanation of casting to a BP placed at the target location and using the "Find Look at Rotation" node is definitely the way to go. After casting to the "target" BP I was able to set a reference to that cast to get the location of the actor. Then with the Find Look at Rotation node, using the location of the arrow as the start and the actor's location as the target, set the rotation of the arrow to the return value of the Look at Rotation node. You can use a Tick event to update the arrow's rotation so that it will always point to the target location.

Cheers

Doug Wilson

more ▼

answered Nov 13 '14 at 08:23 PM

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

Look into Find Look at Rotation node.

more ▼

answered Nov 11 '14 at 01:33 PM

avatar image

Jacky
16.7k 671 167 674

avatar image tuneful Nov 13 '14 at 12:30 PM

thanks for the reply jacky^^ now i have to replace the "get player pawn" node with the mesh or position on which i want the hole thing to point... any ideas? :( alt text

get_location.png (73.5 kB)
avatar image Jacky Nov 13 '14 at 01:39 PM

You can create an empty actor BP with only a scene component in it, then place it at the location you want the compass to point at. And then Get All Actors of Class > For Each Loop > Cast to your north pole BP. Now you can get the location of that BP and use it as Target.

alt text

get_loc.jpg (50.1 kB)
(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