How do I set the text in the NPC of a clientr.var.
Here is the NPC script
PHP Code:
function onCreated()
{
showText(205, 188, 115, $pref::graal::defaultfontname, "c", "" @(player.clientr.hp));
//all the show text stuff that comes with it
setTimer(0.2);
}
function onTimeOut()
{
destroy();
}
and the place script
PHP Code:
temp.npc = this.level.putNPC2(player.x+4.5, player.y, "");
temp.npc.join("healthdisplay");