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"

Using Keyboard to Delete an Brush?

I have encountered an issue with using a key on the keyboard to trigger an event in a brush. I need it to update a variable in the FirstPersonCharacter then delete itself. The key I was using for testing was 'E' anyway this is still possible?

Product Version: UE 4.14
more ▼

asked May 01 '17 at 11:05 PM in Blueprint Scripting

avatar image

3 1 1

avatar image Krogalios May 01 '17 at 11:33 PM

Sorry typo, A Brush

avatar image Wolfraph May 01 '17 at 11:39 PM

Hi, may you explain more specifically what you want to achieve?

avatar image Krogalios May 02 '17 at 10:03 PM

When the key 'E' is pressed I want it to delete itself and update the variable 'Ammo', I understand the cast to FirstPersonCharacter, but I can't figure out the key

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

1 answer: sort voted first

I guess you need an actor (with static mesh component) instead of brush. You can get player character then cast to your specific class (use search to find out that), this allows you to set character variable. In the end of your script, destroy actor.

Just pretending that I'm right, because if you refer to the texture brush, you can't do stuff)

more ▼

answered May 02 '17 at 09:02 AM

avatar image

846 31 13 48

avatar image Krogalios May 02 '17 at 10:01 PM

Thanks I will try that

avatar image Two-faced May 02 '17 at 10:03 PM

You are welcome!

avatar image Wolfraph May 02 '17 at 10:06 PM

yeah. i think this has much sense

avatar image Two-faced May 03 '17 at 08:22 AM


Please mark answer as accepted for searching purpose.

alt text

accept.png (3.2 kB)
(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