Jump to content

Home

Regeneration


Vox Kalam

Recommended Posts

There probably is but it's less work to modify their hides ("armor" they're always wearing but never shows up on the equipment slot or interferes with what you equip them with). HK-47's is g_i_crhide013 and can be tweaked as any other uti file can. You can add or remove hides at the natural items part of a creature's inventory.

Link to comment
Share on other sites

I'm trying to make this happen during a dialogue. Sort of a mini-storyline in which he gets an upgrade.

 

It's really just the same as creating and equipping a normal item :).

 

void main()
{

   // Possibly use OBJECT_SELF if the creature "owns" the dialogue node
   object oNPC = GetObjectByTag("FooBar");
   object oHide = CreateItemOnObject("HideResRef", oNPC, 1, TRUE);

   DestroyObject(GetItemInSlot(INVENTORY_SLOT_CARMOUR, oNPC));
   AssignCommand(oNPC, ActionEquipItem(oHide, INVENTORY_SLOT_CARMOUR));

}

 

Should work, though I've not tested it.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...