Announcement

Collapse
No announcement yet.

casting to object fails

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

    casting to object fails

    okay so i am using a basic inventory system and searching inventory when i cast to the object with the searchable inventory i cant get the id for the button (items) i am pressing the inventory because the cast always fails
    Click image for larger version

Name:	InvSearchButton.PNG
Views:	1
Size:	114.9 KB
ID:	1211803

    #2
    There can be 3 reasons for this:
    The Main Char is Null,
    The Actor Traced is Null, or
    Actor Traced is not a BP_ItemMaster

    Or a Combination of all 3

    Comment


      #3
      Originally posted by Raildex_ View Post
      There can be 3 reasons for this:
      The Main Char is Null,
      The Actor Traced is Null, or
      Actor Traced is not a BP_ItemMaster

      Or a Combination of all 3

      this is the only place the cast fails
      everywhere else it is referenced it works

      Comment


        #4
        What returns if you Get Display Name of Actor Traced (which I assume is a BP_ItemMaster or parent of?) and connect it to a print string?

        Comment


          #5
          Originally posted by Pinworm View Post
          What returns if you Get Display Name of Actor Traced (which I assume is a BP_ItemMaster or parent of?) and connect it to a print string?
          okay so the actor is being stored but in the actor traced but for some reason it is only being shared to the button, i put it on a tick in the button and in the main Char, and only the main char print string is returned. so i just had a thought and please tell there is a better way then doing this Click image for larger version

Name:	InvSearchButtonV2.PNG
Views:	1
Size:	191.2 KB
ID:	1123802

          Comment

          Working...
          X