Announcement

Collapse
No announcement yet.

How do I detect light at location with BP?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do I detect light at location with BP?

    I'm trying to detect when the player is in darkness or light, I've looked on the forums and the only answer I have found is line tracing but that doesn't account for transparent or semi-transparent objects, is there a way to get the color of the model during play or anything like that.

    Thanks in advance.

    #2
    You need to count it manually (or blueprintally). Get all actors that are light class, line trace to each of them from spot you are testing. Do some formula that calculates light intensity. For that formula use google see how it is done, find something as fast as possible (preferably without square root).

    Comment

    Working...
    X