Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Shows how much health you have.
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#4
RE: Shows how much health you have.

(08-22-2012, 11:05 PM)andyrockin123 Wrote: You could use set message and get player health with an if statement. something like:

void CheckHealth(string &in asTimer)
{

AddTimer("", 0.2f, "CheckHealth")

if (GetPlayerHealth == 100)
{
SetMessage("Health", "100", 0);
}
}

Repeating the script 100 times (for 0-100).
That's a long way to go, but it should work completely. But the text would always appear on the center of the screen. But yeah, this is a great way to try it out.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
08-23-2012, 09:37 AM
Website Find


Messages In This Thread
Shows how much health you have. - by onv - 08-22-2012, 10:12 PM
RE: Shows how much health you have. - by Melvin - 08-22-2012, 10:51 PM
RE: Shows how much health you have. - by Adny - 08-22-2012, 11:05 PM
RE: Shows how much health you have. - by Robby - 08-23-2012, 09:37 AM
RE: Shows how much health you have. - by Damascus - 08-23-2012, 09:51 AM



Users browsing this thread: 1 Guest(s)