Question About giveweapon...

Discussion in 'Call of Duty: Black Ops 2 Scripts Questions' started by The Dark Side, Jun 22, 2017.

  1. The Dark Side

    The Dark Side Former Staff Member

    980
    812
    398
    Credits:
    3,511
    I've always wondered about the arguments.

    I know its usually just Giveweapon( <weapon name here>)
    But it can also be, for example.

    giveWeapon("knife_mp", 0, 1, (15, 0, 0, 0, 0 ));

    The 15 is a camo argument. But i don't know what the others are. Anybody know?
     
  2. vampytwist

    vampytwist "Don't you trust me?" Staff Member Premium Member

    505
    488
    278
    Credits:
    7,815
    self giveWeapon( <weapon>, <variant>, <dualWeildBoolien> );

    guessing the rest has to do with attachments on the weapon
     
    CabCon likes this.
  3. Pyrex BLJ

    Pyrex BLJ Moderator Staff Member Premium Member

    542
    317
    378
    Credits:
    2,862
    what does variant do?
     
  4. The Dark Side

    The Dark Side Former Staff Member

    980
    812
    398
    Credits:
    3,511
    That's what i was thinking but i cant find the actual code anywhere in the dumps...

    variant and dualwield huh? o.o Variant like... what though?
     
  5. zommer0532

    zommer0532 Known Member

    166
    81
    238
    Credits:
    956
    can you dual wield like that MW2 mod on ps3?
     
    Pyrex BLJ and The Dark Side like this.
  6. The Dark Side

    The Dark Side Former Staff Member

    980
    812
    398
    Credits:
    3,511
    So nobody knows huh? :disappointed:
     
  7. vampytwist

    vampytwist "Don't you trust me?" Staff Member Premium Member

    505
    488
    278
    Credits:
    7,815
    I'm honestly not thats sure or familiar with black ops 2 to be honest, I was taking a guess; but It just throws an error anyway whenever you try to use more than 2 params with give weapon or at least it does with me. xD
     
    The Dark Side likes this.
  8. The Dark Side

    The Dark Side Former Staff Member

    980
    812
    398
    Credits:
    3,511
    Yeah it did with me too. I didnt think those were attachment args because if you wanted one with attachments all you do islike.

    ballista_mp = original gun
    ballista_mp+laser = Gun with laser.

    No args are changed and it works just fine. I have no idea what the other things do. But i wish i did...
     
    Pyrex BLJ likes this.
  9. Pyrex BLJ

    Pyrex BLJ Moderator Staff Member Premium Member

    542
    317
    378
    Credits:
    2,862
    try them lol
     
  10. The Dark Side

    The Dark Side Former Staff Member

    980
    812
    398
    Credits:
    3,511
    like vampy said, it gives an error and crashes the game lol
     
  11. Pyrex BLJ

    Pyrex BLJ Moderator Staff Member Premium Member

    542
    317
    378
    Credits:
    2,862
    oh yea
     
  12. candy

    candy G59 Terrorist Donator

    1,193
    780
    398
    Credits:
    6,434
    This mystery will live on forever.
     
    The Dark Side and Pyrex BLJ like this.
  13. The Dark Side

    The Dark Side Former Staff Member

    980
    812
    398
    Credits:
    3,511
    [​IMG]
     
    candy and Pyrex BLJ like this.

Share This Page