Announcement

Collapse
No announcement yet.

Flashlight Collision issue

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

    Flashlight Collision issue



    Hello everyone,

    After following some tutorials, I recently made a flashlight that allows an A.I to see it via collision channels, but I just realised I have hit a small snag, the AI will be able to get hits from its line trace through walls currently with the mesh I am using to detect where the light is, is there any way to solve this issue as I do not want to run into the problem of having an AI that can basically see through walls...

    #2
    Originally posted by Moodydata View Post


    Hello everyone,

    After following some tutorials, I recently made a flashlight that allows an A.I to see it via collision channels, but I just realised I have hit a small snag, the AI will be able to get hits from its line trace through walls currently with the mesh I am using to detect where the light is, is there any way to solve this issue as I do not want to run into the problem of having an AI that can basically see through walls...
    Use multi trace instead of line trace:

    https://www.youtube.com/watch?v=zRSsj3UUI4I

    Comment

    Working...
    X