Jump to content

Home

Hardcore Mod and Modding


MightyMidget

Recommended Posts

  • Replies 53
  • Created
  • Last Reply

code:--------------------------------------------------------------------------------

object oItemBooster1=CreateItemOnObject("uti_templateresref1");

object oItemBooster2=CreateItemOnObject("uti_templateresref2");

object oItemBooster3=CreateItemOnObject("uti_templateresref3");

object oItemBooster4=CreateItemOnObject("uti_templateresref4");

ActionEquipItem(oItemBooster1, INVENTORY_SLOT_CWEAPON_L, TRUE);

ActionEquipItem(oItemBooster2, INVENTORY_SLOT_CWEAPON_R, TRUE);

ActionEquipItem(oItemBooster3, INVENTORY_SLOT_CWEAPON_B, TRUE);

ActionEquipItem(oItemBooster4, INVENTORY_SLOT_CARMOUR, TRUE);

--------------------------------------------------------------------------------

 

In this block of code, how do I reference to the name of my new uti files? do I just put:

object oItemBooster1=CreateItemOnObject("uti_filename");

 

?

Link to comment
Share on other sites

Technically, you put what is in the TemplateResref field of the .uti, but that is supposed to be defined as the name of your uti file (minus the .uti extension).

 

That's the long answer for 'yes'.

 

Once the item exists in-game, you can refer to it by its Tag using GetObjectByTag function.

Link to comment
Share on other sites

Archived

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


×
×
  • Create New...