Announcement

Collapse
No announcement yet.

Can I 'switch on actor hit' from line trace?

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

    Can I 'switch on actor hit' from line trace?

    Hello everyone, I am working on a game that will have a lot of interaction, I am doing a per frame line trace from my character, and am wondering what the best method is to do a certain action based on which item is hit, can anyone help?
    Marketplace Assets

    Advanced Mobile Input: Marketplace Page | Support Thread ――― Easy Input Remapping: Marketplace Page | Support Thread
    Multiplayer Blueprint Chat System: Marketplace Page | Support Thread ――― Closing Credits System: Marketplace Page | Support Thread
    Minesweeper Template: Marketplace Page | Support Thread ――― Maze Creator: Marketplace Page | Support Thread

    #2
    Blueprint interface? If you look in the content examples ->physics and check out I think the player controller they have different effects depending on what the hit object is. I used a tweaked version of this to cast to blueprint components for a project I worked on but im sure there is a better method for handling it in more recent versions of Unreal.

    Comment


      #3
      Originally posted by ZoltanJr View Post
      Blueprint interface? If you look in the content examples ->physics and check out I think the player controller they have different effects depending on what the hit object is. I used a tweaked version of this to cast to blueprint components for a project I worked on but im sure there is a better method for handling it in more recent versions of Unreal.
      Well by interaction, I just mean that different things happen depending on the item, like the player can look at an item and have something different happen. (I have blueprint actors placed around the map)
      Last edited by Jamendxman3; 06-18-2015, 12:17 AM.
      Marketplace Assets

      Advanced Mobile Input: Marketplace Page | Support Thread ――― Easy Input Remapping: Marketplace Page | Support Thread
      Multiplayer Blueprint Chat System: Marketplace Page | Support Thread ――― Closing Credits System: Marketplace Page | Support Thread
      Minesweeper Template: Marketplace Page | Support Thread ――― Maze Creator: Marketplace Page | Support Thread

      Comment


        #4
        Just set up an "interactive item" blueprint and then make all of your actual objects be children of that, so then you cast to the childwhen the player has looked at it and all the rules for what it should do are just handled on the child blueprint but the actual look at event is handled by the parent.

        Check out the VR template and it has a look at to interact blueprint in there that you should be able to modify for your needs.

        Comment

        Working...
        X