Announcement

Collapse
No announcement yet.

Trigger switches next to each other individually

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

    Trigger switches next to each other individually

    I'm having problems with blue prints. I'm trying to get switches very close to each other to trigger different lights. How do i make a trigger activate ONLY wen the crosshair is pointing at it without triggering all of them in the area with the same key (E)?
    Here's a picture of the switches i'm trying to blueprint and how close together they are. There's the lamp and both switches on the wall.
    Then there's also the door.
    Thanks!
    Click image for larger version

Name:	Untitled-1.jpg
Views:	1
Size:	532.1 KB
ID:	1161979

    #2
    On button press, do a line trace.

    Here you go: https://docs.unrealengine.com/latest...nts/index.html

    Comment


      #3
      I would use a Single Line Trace by Object(https://docs.unrealengine.com/latest...nts/index.html).
      Here's a pic from my projects blueprint(It works without error for me, but may not be the best way to do it. I'm still learning unreal4.)Click image for larger version

Name:	bpTraceCheck4.png
Views:	1
Size:	652.0 KB
ID:	1088329
      Click image for larger version

Name:	door1.PNG
Views:	1
Size:	703.7 KB
ID:	1088335
      Click image for larger version

Name:	door2.PNG
Views:	1
Size:	731.5 KB
ID:	1088336
      Attached Files
      Last edited by JDF; 09-29-2015, 11:29 AM.

      Comment


        #4
        thanks i'll give it try

        Comment


          #5
          the problem is i don't know exactly how to make that interact with a light. been going about it for an hour now and i still have no idea. those tutorials are useful but too much information and just confused the hell out of me. i have no idea what to use to have it interact with a button that then interacts with a light on the map

          Comment


            #6
            also, the trace line seems to be firing off behind me instead of in front of me. i followed the instructions to the letter and don't know why this happens

            update: nevermind this part, i was using vector * vector instead of vector + vector
            Last edited by Bad_Request; 09-29-2015, 07:22 AM.

            Comment

            Working...
            X