Npc Healt Meter
De DigiWiki.
Version du 6 mai 2014 à 07:50 par Djphil (discuter | contributions)
- Activez les dégats sur la région.
- Placez ce script dans un cube (0.1, 0.1, 0.1) et portez le sur la tête.
- Créez la notecard pour votre NPC.
// Npc Healt Meter v0.1 by djphil (CC-BY-NC-SA) key agentID; default { state_entry() { agentID = llGetOwnerKey(llGetKey()); llSetAlpha(!llGetAttached(), ALL_SIDES); llSetTimerEvent(1.0); } timer() { llSetText(llKey2Name(agentID) + " " + (integer)osGetHealth(agentID) + "%", <1.0, 1.0, 1.0>, 1.0); } on_rez(integer start_param) {llResetScript();} changed(integer change) {if (change & CHANGED_OWNER) {llResetScript();}} }