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 Saff Member

    959
    796
    398
    Credits:
    3,289
    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

    487
    465
    278
    Credits:
    7,555
    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

    517
    307
    378
    Credits:
    2,710
    what does variant do?
     
  4. The Dark Side

    The Dark Side Former Saff Member

    959
    796
    398
    Credits:
    3,289
    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

    162
    79
    238
    Credits:
    918
    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 Saff Member

    959
    796
    398
    Credits:
    3,289
    So nobody knows huh? :disappointed:
     
  7. vampytwist

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

    487
    465
    278
    Credits:
    7,555
    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 Saff Member

    959
    796
    398
    Credits:
    3,289
    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

    517
    307
    378
    Credits:
    2,710
    try them lol
     
  10. The Dark Side

    The Dark Side Former Saff Member

    959
    796
    398
    Credits:
    3,289
    like vampy said, it gives an error and crashes the game lol
     
  11. Pyrex BLJ

    Pyrex BLJ Moderator Staff Member

    517
    307
    378
    Credits:
    2,710
    oh yea
     
  12. candy

    candy G59 Terrorist Donator

    1,092
    725
    398
    Credits:
    5,986
    This mystery will live on forever.
     
    The Dark Side and Pyrex BLJ like this.
  13. The Dark Side

    The Dark Side Former Saff Member

    959
    796
    398
    Credits:
    3,289
    [​IMG]
     
    candy and Pyrex BLJ like this.

Share This Page