Jump to content

Scripting Question


unstablegamer

Recommended Posts

I just started working with the CS today, and so far have made a npc that follows me, can change inventory, and teleport to me if they get stuck. Now there is one thing I cant figure out for the life of me. I have looked all over the net and looked at other npc mods and cant seem to find any function, or premade script to do what I want to do, and have become frustrated with the trial and error approach.

 

How do I make a NPC use repair hammers to repair their inventory?

 

Such a simple problem but I just can not figure it out, any ideas on how to do this, or if its even possible would be appreciated.

Link to comment
Share on other sites

I just started working with the CS today, and so far have made a npc that follows me, can change inventory, and teleport to me if they get stuck. Now there is one thing I cant figure out for the life of me. I have looked all over the net and looked at other npc mods and cant seem to find any function, or premade script to do what I want to do, and have become frustrated with the trial and error approach.

 

How do I make a NPC use repair hammers to repair their inventory?

 

Such a simple problem but I just can not figure it out, any ideas on how to do this, or if its even possible would be appreciated.

 

As far as I know they can't repair their own equipment. It's silly because there is no way to actually repair armor or weapons through scripts (getting at the durability of an item). The only thing I can suggest is have the NPC give you their broken inventory and you repair it.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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