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 stop a function while colliding with the character

Hi guys, I'm trying to stop a function that I put in the blueprint of the platform actor, the function causes them to move to a certain place infinitely. I wanted that when the character collided with these platforms they would stop right where they are. Thank you for any help.

alt text

blueprint actor Plataform: alt text

Product Version: UE 4.18
Tags:
more ▼

asked Nov 09 '17 at 08:00 PM in Blueprint Scripting

avatar image

worgus
6 1

avatar image Melaverde Nov 09 '17 at 08:28 PM

You want stop event tick when there is overlap?

avatar image ColdSteel48 Nov 09 '17 at 08:36 PM

There are various options to do so: As suggested above you can stop the tick function SetActorTickEnabled false, if you still need a tick function for other sort of things you can add a boolean variable - and perform your function while the var is true - on begin overlap you can set it to false and on end overlap you can return it back to true.

avatar image worgus Nov 10 '17 at 11:57 AM

I Try use a boolean with a branch and the events begin overlap and end overlap but something im doing is wrong.. look... alt text

Can it be any problem in my actor's collision? alt text

I'll keep to trying Thank you very much!

i-try.png (260.0 kB)
i-try2.png (419.2 kB)
avatar image ColdSteel48 Nov 10 '17 at 05:21 PM

What exactly is wrong? I mean the bp looks fine

avatar image worgus Nov 10 '17 at 05:44 PM

This is working but only with other actors, with the character it continues the function... I Was thinking... would it be better if I animatedly move the platforms and then put a function to stop when colliding? My goal is to make the platform stop moving as soon as the character falls on it

avatar image ColdSteel48 Nov 10 '17 at 05:56 PM

Oh, so the character (pawn I suppose) does not generate the overlap event with the platform. Try to play with the collision preset of the platform/pawn.

avatar image ColdSteel48 Nov 10 '17 at 05:58 PM

If you want to stop the movement forever you can override the hit event (collision) and disable the tick function/set the bool.

avatar image worgus Nov 13 '17 at 12:41 AM

Hey.. I Got It!!! xD So .. I was calling the collision event from the wrong object, I should have selected the triggerbox and then generated the onActorBeginOverlap command anyway thank you very much for the help

avatar image ColdSteel48 Nov 13 '17 at 01:10 AM

I glad you did it sir!

Good Luck!

avatar image worgus Nov 13 '17 at 01:11 AM

xD Thank you

avatar image worgus Nov 10 '17 at 11:40 AM

yes! I Want it

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

0 answers: sort voted first
Be the first one to answer this question
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