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"

Move an Actor from widget button press

I'm working on a game, and need to move an actor to a locatio when i press a buttin in a widget,but it can't move when I press the button. Can someone tell me how to make an actor move from a widget?

Product Version: UE 4.22
Tags:
more ▼

asked Apr 12 '19 at 01:49 PM in Blueprint Scripting

avatar image

Blackforcedragon
0 2 7 10

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

2 answers: sort voted first

You need to reference you specific actor you want to move within the widget and use the "On Clicked" event from the button to set the actor's location. If you need help with casting and creating references check out video #1 and 25. They should help you get on the right track.

https://www.youtube.com/playlist?list=PLyu-W38DvZhqByAoeva1jewB5s78zQHIy

more ▼

answered Apr 12 '19 at 02:33 PM

avatar image

Nebula Games Inc
4.9k 27 9 14

avatar image Blackforcedragon Apr 12 '19 at 02:40 PM

I did try to cast to my actor, but it won't work, what do Ineed to conect to the object pin on the cast to my actor?

avatar image Blackforcedragon Apr 12 '19 at 03:10 PM

I did fint 1 way to fix it, bu using an overlap like you said, but i did you a tigger box and set to actor to teleport the actor did overlap whit that triggerbox

avatar image Nebula Games Inc Apr 12 '19 at 03:36 PM

So you got it? Or you still have issues?

avatar image Blackforcedragon Apr 12 '19 at 03:37 PM

Yes, I was able to fix it, thank you for the help

avatar image Nebula Games Inc Apr 12 '19 at 04:19 PM

Awesome. Can you mark this resolved so it is clear to others.

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

The way I was able to fix this is ti use a trigger box, and when I press the button, the trigger box will spawn on and overlap my actor and then in the actor Blueprint I did set is so if that trigger box is overlapping, the the actor will teleport

more ▼

answered Apr 12 '19 at 05:03 PM

avatar image

Blackforcedragon
0 2 7 10

(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