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. 

Unique variable for each blueprint instance ?

Hi there,

I'm working in a scene where I've put some popups. Each one has to react the same way when activated, but of course separately. For now I've set up a "popup_Class" which defines Cosntruction Script and some other Tick event things. I've set up another "popup_detail" blueprint in which all activating/deactivating events are set. I've put 4 of this "popup_detail" blueprint in the scene.

When I activate one of them, the game uses the parameters and variable values of ALL these blueprints at the same time, so the activation fails.

Does anybody know how to make the popups react the same way, but separately, whithout making a different blueprint for each ?

Thanks a lot !

If details are needed : the popup is activated when the player looks at it 2 seconds (in a trigger zone), and deactivated when click or quitting a trigger zone.

Product Version: UE 4.10
Tags:
more ▼

asked Apr 21 '16 at 09:03 AM in Using UE4

avatar image

Teapot Creation
165 22 32 47

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

1 answer: sort voted first

Can you show the logic you used in practice for the behavior? Anyway, I think you could you add the trigger zone to the popup, Thenset it to react when overlap is type of your player, and do its thing.

more ▼

answered Apr 21 '16 at 10:43 AM

avatar image

ClaudioPiccinni
234 24 20 27

avatar image Teapot Creation Apr 21 '16 at 11:51 AM

It seems that it works fine now, but I can't really figure out why it works... I juste set up the bool variable as "private", I didn't know what it'd do, but looks like it did the job. Here is my setup : popup Class : popup_Class sets the rotation of the popup (facing the camera) and some custom functions.

popup detail : popup_detail lets each popup move during time while not activated, and become big when activated (and small when deactivated again).

FirstPersonCharacter-part1 FirstPersonCharacter-part2 FirstPersonCharacter checks if one popup is targeted (through linetrace), waits 2 seconds while filling a widget, then calls the activating event onto the targeted popup.

avatar image ClaudioPiccinni Apr 21 '16 at 12:39 PM

And what was the variable that set to public made it misbehave? Also what part of that logic misbehaved?

avatar image Teapot Creation Apr 21 '16 at 12:55 PM

It seemed that the bool "Active?" set in popup_detail was used by all the popups, so when one was targeted and activated, other popups were saying "no, it's not active !".

avatar image ClaudioPiccinni Apr 21 '16 at 01:20 PM

Doesn't seem the right conclusion to me, but the screenshots don't show much for me to understand what the problem really was.

avatar image Teapot Creation Apr 21 '16 at 01:32 PM

Eh, me neither, even with all the data in front of my nose ^^ well at least it works now, if i've got a probleme again i'll be back !

(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