1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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 Sectional Moderator Staff Member

    958
    795
    398
    Credits:
    3,277
    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

    452
    437
    278
    Credits:
    6,757
    self giveWeapon( <weapon>, <variant>, <dualWeildBoolien> );

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

    Pyrex BLJ Console Section Trial Moderator Staff Member

    468
    288
    378
    Credits:
    2,462
    what does variant do?
     
  4. The Dark Side

    The Dark Side Sectional Moderator Staff Member

    958
    795
    398
    Credits:
    3,277
    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

    155
    76
    138
    Credits:
    847
    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 Sectional Moderator Staff Member

    958
    795
    398
    Credits:
    3,277
    So nobody knows huh? :disappointed:
     
  7. vampytwist

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

    452
    437
    278
    Credits:
    6,757
    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 Sectional Moderator Staff Member

    958
    795
    398
    Credits:
    3,277
    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 Console Section Trial Moderator Staff Member

    468
    288
    378
    Credits:
    2,462
    try them lol
     
  10. The Dark Side

    The Dark Side Sectional Moderator Staff Member

    958
    795
    398
    Credits:
    3,277
    like vampy said, it gives an error and crashes the game lol
     
  11. Pyrex BLJ

    Pyrex BLJ Console Section Trial Moderator Staff Member

    468
    288
    378
    Credits:
    2,462
    oh yea
     
  12. Candy

    Candy G59 Terrorist Donator

    997
    680
    378
    Credits:
    5,477
    This mystery will live on forever.
     
    The Dark Side and Pyrex BLJ like this.
  13. The Dark Side

    The Dark Side Sectional Moderator Staff Member

    958
    795
    398
    Credits:
    3,277
    [​IMG]
     
    Candy and Pyrex BLJ like this.

Share This Page