Question About giveweapon...

The Dark Side

Former Staff Member
Messages
1,007
Points
568
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?
 

vampytwist

"Don't you trust me?"
Staff member
Messages
538
Points
408
self giveWeapon( <weapon>, <variant>, <dualWeildBoolien> );

guessing the rest has to do with attachments on the weapon
 

The Dark Side

Former Staff Member
Messages
1,007
Points
568
self giveWeapon( <weapon>, <variant>, <dualWeildBoolien> );

guessing the rest has to do with attachments on the weapon
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?
 

vampytwist

"Don't you trust me?"
Staff member
Messages
538
Points
408
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

Former Staff Member
Messages
1,007
Points
568
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
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

im done :)
Staff member
Premium Member
Messages
604
Points
528
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...
try them lol
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,301
Points
548
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?
This mystery will live on forever.
 
Top