i’m having an issue with calling a function inside a script the error i get is can’t convert void to float.
what i want do is call a script that returns a floating point value and assign it to a variable inside of a script so i can set it to gui text.
inside my stats script i have
public float getCurrentHealth
{
get{return health;}
}
inside my menu script i have:
float health;
health = player.BroadcastMessage("getCurrentHealth");
GUI.Button(new Rect(55, 100, 180, 40), "Health: " + health);
any help would be awesome… I’m just trying to make buttons that have say health: 20/20