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

    995
    827
    398
    Credits:
    3,675
    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

    530
    513
    308
    Credits:
    8,228
    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

    561
    326
    378
    Credits:
    3,003
    what does variant do?
     
  4. The Dark Side

    The Dark Side Former Staff Member

    995
    827
    398
    Credits:
    3,675
    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 Well-Known Member

    166
    81
    238
    Credits:
    962
    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

    995
    827
    398
    Credits:
    3,675
    So nobody knows huh? :disappointed:
     
  7. vampytwist

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

    530
    513
    308
    Credits:
    8,228
    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

    995
    827
    398
    Credits:
    3,675
    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

    561
    326
    378
    Credits:
    3,003
    try them lol
     
  10. The Dark Side

    The Dark Side Former Staff Member

    995
    827
    398
    Credits:
    3,675
    like vampy said, it gives an error and crashes the game lol
     
  11. Pyrex BLJ

    Pyrex BLJ Moderator Staff Member Premium Member

    561
    326
    378
    Credits:
    3,003
    oh yea
     
  12. candy

    candy G59 Terrorist Donator

    1,242
    813
    398
    Credits:
    6,797
    This mystery will live on forever.
     
    The Dark Side and Pyrex BLJ like this.
  13. The Dark Side

    The Dark Side Former Staff Member

    995
    827
    398
    Credits:
    3,675
    [​IMG]
     
    candy and Pyrex BLJ like this.

Share This Page