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"

Mark an object

Hi, I was wondering if there is any way i can create something using blueprints that will allow me to mark an object like a cube for teleportation (and remove the mark again) using ingame keyboard inputs

Product Version: UE 4.20
Tags:
more ▼

asked Oct 20 '18 at 12:48 AM in Using UE4

avatar image

KenseiH
1 1 3

avatar image mightyenigma Oct 20 '18 at 03:21 AM

Yes. What kind of Mark are you thinking of, like a visible mark or just storing it in a variable?

avatar image KenseiH Oct 20 '18 at 08:39 AM

Well, im really new to this sorta thing so just storing it would be a good start :)

avatar image KenseiH Oct 20 '18 at 11:13 AM

To clarify the goal is to create a mark (in the end a visible mark) of a sort that would teleport the player to chosen mark. An example of what the inputs could be is F1, F2, F3 and F4 for the teleportation, while applying would be Shift + F(1/2/3/4) and to remove mark: ALT + F(1/2/3/4)

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

1 answer: sort voted first

And that case I would just create an actor blueprint very basic actor doesn't have any other components doesn't have to be visible, and when you want to place a marker, you spawn that actor at that location. Also, when you spawn it, set tags on it so that you make an array of size 1 which has a tag of one, two, three, or four. Then, when you want to teleport to it, do a get all actors with tag, using one, two, three, or four. The Returned array should contain only the marker you want, as long as you destroy the one that has the matching tag each time you create a new one or teleported to the new location.

more ▼

answered Oct 21 '18 at 12:32 AM

avatar image

mightyenigma
3.7k 18 19 20

(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