-
Member
how i do in source amout weapon
i got in use 95 poison of power elixer
i want to do function in source
that function return the number of items
it mean if i got power elixer it will return to Variable The number of power elixer.
i got function in js that summon function from the source:
var chosenItem = cm.getPlayer().getInventory(type[0]).getItem(i).getItemId();
that function :
cm.getPlayer().getInventory(type[0]).getItem(i).getItemId();
type[0]= inventory from USE
getItem(i)= the location in my invntory
getItemId()= the id of the item
but now i need the amount about the posion
how i do that????
-
-
Member
Re: how i do in source amout weapon
never mind i finish that
can close :)