Announcement

Collapse
No announcement yet.

HUD's text item binding script needs to know which object it's binding.

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

    HUD's text item binding script needs to know which object it's binding.

    So I'm creating a game, and I want it to display everybody's hit points on the HUD. I've got a text item and created a binding script that collects the hit points, switches it to a string, and copies over the text item.

    Now my problem is that I can't tell each version of the text item to look at a different player's hit points. Is there a way I can assign a value to a local variable for each instance of the text item? Or failing that, is there a way for the binding to retrieve the name of the specific text item?

    Here's what the script looks like right now:
    Click image for larger version

Name:	temp.png
Views:	1
Size:	138.0 KB
ID:	1212663
    Attached Files
Working...
X