Jump to content

How to set health for item?


truestiven

Recommended Posts

Hello everyone! I'm trying make item in my mod unrepaireble. I set hp of this item to 999999, and set "none" in repair list. But when that item is crafted on workbench, the item still don't have 100% hp, and still can be repaired with another instance of that item. I'm trying write script, that will be set hp of just crafted item to 100%, but it doesn't working( Please, can you give me some advice about how to make it work?

scn sAutoRepair

int DoOnce

Begin GameMode

if DoOnce != 1
	Set rSelf to GetSelf
		rSelf.SetCurrentHealth 100
	Set DoOnce to 1
endif
end
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...