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"

How to destroy a blueprint actor when clicked by mouse

Hello, what is a simple way of destroying a blueprint actor when the mouse or the player has pressed on it on mobile game.

So far, this is what I got from other posted questions but it does not work on me. alt text

Product Version: UE 4.17
Tags:
capture1.jpg (79.6 kB)
more ▼

asked Aug 15 '17 at 09:04 PM in Using UE4

avatar image

Jefred
7 4 5 6

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

2 answers: sort voted first

You're going to have to setup an Action mapping in the project settings. alt text

You would the call that action like you do an event in the blueprint of the Player. alt text

inputsettings.png (71.4 kB)
inputtouch.png (169.8 kB)
more ▼

answered Aug 15 '17 at 10:22 PM

avatar image

vivalabugz
724 10 8 13

avatar image Jefred Aug 16 '17 at 08:55 AM

I tried but still does not work. I got an error.

I'm trying to experiment so that my ledge actor will be destroyed once I click on it or touch it.alt text

1.jpg (56.3 kB)
2.jpg (123.1 kB)
avatar image vivalabugz Aug 17 '17 at 01:35 AM

sorry, forgot to add the object type array. do you get an error after connecting the array to the object types pin?

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

I did not get an error when connecting the "make array" but it did not work. And what should I choose on the drop list of "make array"

Thanks

more ▼

answered Aug 17 '17 at 07:24 AM

avatar image

Jefred
7 4 5 6

avatar image vivalabugz Aug 17 '17 at 07:55 PM

It depends what your object is. If you go to the object you want to destroy collision settings, you should see "Object Type". That object type is what you should choose on the drop list. For example, if the object you wish to destroy is an object type of "World Static", your make array drop down should be "World Static"

avatar image Jefred Aug 18 '17 at 09:05 AM

Thank you, I learned a lot from you.

You might be able to answer this question that I have been trying to find out. https://answers.unrealengine.com/questions/679240/can-you-actually-package-and-submit-ios-apps-on-wi.html

avatar image vivalabugz Aug 18 '17 at 04:27 PM

no problem! Make sure to mark my answer as the answer :)

I actually don't know much about iOS apps, I'm afraid I won't be of help for that, sorry!

(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