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"

Trying to get a light to change visibility on collision with a seperate blueprint but it does nothing.

Pretty much the title says everything other than;

The picture below is the blueprints im using and a picture of the light/collision

  1. LightController - Collision.

  2. Light in a StaticMesh BP (Not visible)

  3. LightController's BP Event Graph.

alt text

Product Version: Not Selected
Tags:
notworking.jpg (399.4 kB)
more ▼

asked Oct 19 '14 at 11:11 PM in Blueprint Scripting

avatar image

TheMunky
126 13 18 25

avatar image Erasio Oct 20 '14 at 10:56 AM

Did you fill the "LightController" variable?

avatar image TheMunky Oct 21 '14 at 02:49 AM

Yeah, I set it to the LightController BP

avatar image Erasio Oct 21 '14 at 03:07 AM

That sounds like the type rather than the actual object.

Did you use the "Set LightController" variable somewhere or referenced that exact object somehow to this variable?

For example you could make that variable editable. Then you can select any object of the type LightController BP inside of your level and have it referencing properly.

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

1 answer: sort voted first

Erasio is on the right track with their suggestion! To further elaborate:

Event Graph for LightController

Example event graph for the LightController blueprint

Set Target Light as an object variable of the blueprint that houses the light you want to toggle and make sure it's marked as editable. Get a reference to it as seen above and you should be able to drag a wire off and get a reference to the point light in the target blueprint (in my case I named the point light Light Source). Drag off that reference to the light and should have access to the Toggle Visibility function.

Marking the Target Light variable as editable allows you to specify which light in your level a given LightController should toggle. You can set it in the LightController properties as seen below.

Properties for LightController

LightController properties window

I hope that helps! Let me know if you have any questions. ^^

bp-comm-2.png (140.8 kB)
bp-comm-3.png (38.7 kB)
more ▼

answered Oct 21 '14 at 04:44 AM

avatar image

pfist
86 10 12 20

avatar image TheMunky Oct 21 '14 at 09:19 PM

Wow haha thank you all for your help, Erasio and Nick was right.

For anyone with the same problem my issue was not the blueprints, it was the "Editable" box, once I had placed the Trigger into the world I had to set it in the detail panel, which light to control, this fixed the problem.

Although I would like to ask how I'd make it so I can edit the visibility of more than one light at the same time.

(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