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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How do I detect if player is colliding with any static mesh then scale it up via 3d scale actor node?

I wanted to scale my player character via 3d scale actor but I want for that to happen if my character isn't colliding with any static mesh within a certain range/radius.I'm trying to do it via sphereoverlap actors, I 'm lost on how to properly set it up.ANy help would be appreciated.alt text

Product Version: UE 4.19
Tags:
1.jpg (259.6 kB)
2.jpg (196.1 kB)
3.jpg (93.5 kB)
more ▼

asked Jul 19 '18 at 02:51 PM in Blueprint Scripting

avatar image

Creative E.T.
3 2 4

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

2 answers: sort voted first

alt text

Set the Radius and the Scale variables to what you want to, and it should work. Though, dont set the radius to be too big or it might collide with the floor.

actor-scaling.png (146.3 kB)
more ▼

answered Jul 21 '18 at 05:30 AM

avatar image

Placinta8
183 4 4 10

avatar image Creative E.T. Jul 22 '18 at 01:21 PM

Worked perfectly, thanks

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

OnComponentBeginOverlap (sphere) add the overlapping actor uniquely to an array or set. OnComponentEndOverlap you remove the actor from that array.

Then check if the array is empty before allowing the character to grow. but dont include the floor or he will never have an empty array.

more ▼

answered Jul 19 '18 at 07:27 PM

avatar image

mightyenigma
3.8k 18 20 20

(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