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"

Blueprint - OnOverlap - Hide Player?

Hi, I tried creating an overlap event in Blueprint in which once the player overlaps the trigger; It hides the player from view until a Matinee cutscene is over, which then it will unhide the player and the player camera. I tried using hide actor and destroy actor on ALL the components of my player (Third person example) but it's not hiding or removing my player from the game.

Is this a bug or am I doing this the wrong way?

Product Version: Not Selected
Tags:
more ▼

asked Apr 17 '14 at 06:00 PM in Blueprint Scripting

avatar image

KITATUS
2.3k 97 83 397

avatar image Wäve Apr 01 '16 at 03:08 PM

How can i do it gives me this error?alt text

error.png (115.3 kB)
avatar image KITATUS Apr 01 '16 at 03:09 PM

Your target pin is empty. Yyou need the "Toggle Visiblity" node which isn't for a secene component and is for the actor in general.

avatar image Wäve Apr 01 '16 at 03:13 PM

Bumping for help

avatar image KITATUS Apr 01 '16 at 03:20 PM

Please don't bump A) a comment, B) Something you posted 10 minutes ago and C) something that has already been answered for you.

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

1 answer: sort voted first

Firstly make sure that your OnActorOverlap event is triggering correctly (perhaps use a breakpoint or a Print String node to verify), and that your collision properties for both your Actor and your Trigger are set correctly.

You can use the Toggle Visibility node to hide your actor from the scene. You can hide the whole actor instead of hiding individual components by setting your player as the target input (self, if working on the player's blueprint).

more ▼

answered Apr 17 '14 at 07:31 PM

avatar image

nopunintendo
390 11 18 36

avatar image KITATUS Apr 17 '14 at 08:42 PM

Thanks works great. Thanks. Do you by chance know how to change the player's location while the matinee is playing, would the player still stay invisible?

avatar image nopunintendo Apr 17 '14 at 09:03 PM

Yes. While the player is hidden, he still exists in the game world. I also believe he still collides with objects etc. because he is only hidden from view, not out of existence or destroyed.

There's a variety of ways to change player location, but if you just want a simple "be at this new location now", you can use the "Set World Location" node, with your player actor as the target, and a vector for the new location.

(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