Announcement

Collapse
No announcement yet.

Can You Give Objects & Players ID's?

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

    Can You Give Objects & Players ID's?

    Let's say I want a wall to appear for team one but not for team two how would I do this? I know this is off topic but if you want to modify a HTML element you give the HTML an ID or Class then link that class to the CSS. Is that same method used in blueprints? So you give the player an ID then use blue prints to add rules? Thanks

    #2
    Originally posted by Nickmadd View Post
    Let's say I want a wall to appear for team one but not for team two how would I do this? I know this is off topic but if you want to modify a HTML element you give the HTML an ID or Class then link that class to the CSS. Is that same method used in blueprints? So you give the player an ID then use blue prints to add rules? Thanks
    This should be possible in the manner in which you're thinking. I have never played with it, but in a base blueprint you could give it any variables you want (An ID variable per say) and make it so that blue players receiving that ID set its render visibility to false and vice versa for the other side.

    It might be a little more complicated than I am typing in words, but it should be entirely possible. I guess I would say this is how I would give forcefield like effects the ability for one side to walk through them and the other to not be able to by setting collision based on which side you were on.

    Comment


      #3
      Okay thanks for the information I'll try looking more into this.

      Comment


        #4
        Assuming that your wall is Blueprint, you can assign a Tag to it (like: Blue Team Wall) and later check for the tag using Component Has Tag node.

        Attached Files
        Support my RTS Game (Agora) on Patreon!
        Unreal Nexus - Create Share and Experience!
        Unreal Engine 4 World-Wide User Map

        [PLUGIN] Aws Gamelift Client Plugin
        [TOOL] Create your own binary release of UE4 from GitHub source
        My UE4 Tutorials and Misc Tools

        Lead Programmer at YetiTech Studios
        Your Friendly Neighborhood
        Satheesh PV (a.k.a RyanJon2040) | Twitter, Instagram, Facebook, LinkedIn, YouTube, Google+

        Comment


          #5
          Thanks cery much that's helped massively !

          Comment

          Working...
          X