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"

Unable to hide/reveal actor in-game

I'm trying to reveal/hide an actor/emitter in-game, the player should be able to see the actor if certain stats fit the criteria. So far I'm only able to hide/reveal the actor by using the 'new hidden' in 'Set Actor Hidden In Game', but it is not possible to do so at run-time.

So my question is this: is 'Set Actor Hidden In Game' something that is not possible to use at run-time? And if so, how may I implement the same effect without using 'Set Actor Hidden In Game'.

Added screen shot with the set-up I've used

alt text

I'm aware that the bool is not attached in this pic, but it should be, but in the case of it being attached the intended result does not happen.

Product Version: UE 4.8
Tags:
more ▼

asked Jun 12 '15 at 03:10 PM in Blueprint Scripting

avatar image

Hardishane
33 5 10 13

avatar image spyro Jun 12 '15 at 10:37 PM

Sorry, I don't really understand your question. Everything what you setup in Blueprint (except the construction script) is supposed to run ingame...?

avatar image Hardishane Jun 13 '15 at 07:26 AM

I'm not following you concerning the construction script. (Not that well versed in the terminology... and a bit dense at times :P )

But I'll try to clarify the question a bit... the challenge for me so far is that, not plugging in the bool, just checking it on/off in the "Set Actor Hidden In Game" box, the actor is hidden or revealed. But plugging in the bool and changing the parameters "intelligence" and "wisdom" does not change the visibility of the actor. So I'm wondering if "Set Actor Hidden In Game" is a run-time command or not, or is my bp set-up wrong in some way?

And since finding hidden actors is a major part of the game I'm trying to make, its a bit of a chasm on the path to completion.

avatar image spyro Jun 15 '15 at 08:34 AM

SetActorHiddenInGame does indeed work while running, setting this to TRUE should indeed hide your referenced actor.

This works as expected: alt text

For individual components, you have to use 'setVisibility' for some reason which can be in conflict with hiddenInGame.

avatar image Hardishane Jun 15 '15 at 01:17 PM

Thank you... that helped.

For the use I intended, I needed to use the setVisibility, so back on track.

avatar image spyro Jun 15 '15 at 06:13 PM

It's a little bit strange, I know. ;)

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

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