how i do in source amout weapon

Results 1 to 2 of 2
  1. #1
    Member asafgb is offline
    MemberRank
    Oct 2010 Join Date
    israelLocation
    80Posts

    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????


  2. #2
    Member asafgb is offline
    MemberRank
    Oct 2010 Join Date
    israelLocation
    80Posts

    Re: how i do in source amout weapon

    never mind i finish that

    can close :)



Advertisement