This:
int nHas = CountItemsByTag(oPC, "item_whatever");
if ( nHas == 0 )
UT_AddItemToInventory(R"item_whatever");
is for one item, yes? So if I want to add more than one item, what do I change?
Is it:
int nHas = CountItemsByTag(oPC, "item_whatever", "Item_whatever2")
?
Need help with script
Débuté par
Incognito JC
, nov. 07 2009 01:19
#1
Posté 07 novembre 2009 - 01:19
#2
Posté 07 novembre 2009 - 01:31
Oh wait, found my answer =P
#3
Posté 12 novembre 2009 - 02:16
for help to others post your answer plz it would help to know how you worked it out
#4
Posté 12 novembre 2009 - 05:26
you just do the UT_AddItemtoInventory(R"ITEMNAME"); multiple times
#5
Posté 12 novembre 2009 - 10:58
Why? You can include a count as a second parameter, you know.Rithwald wrote...
you just do the UT_AddItemtoInventory(R"ITEMNAME"); multiple times
From the toolset help:
object UT_AddItemToInventory (
resource rItem,
int nNumToAdd = 1,
object oInvOwner = OBJECT_INVALID,
string sTag = "",
int bSuppressNote = FALSE,
int bDroppable = TRUE
)
Modifié par Talian Kross, 12 novembre 2009 - 11:01 .





Retour en haut






