Page 1 of 1

simple question >.>

Posted: April 19th, 2009, 2:17 am
by Infinite
I feel like a dumbass for asking this, but how can you give a player an rpg. I've tried

Code: Select all

self setActionSlot( 3, "weapon", "rpg_mp") 
self giveWeapon("rpg_mp")
self setPerk("rpg_mp")
 

but none of them worked and I couldn't find any help by googling :s. I tried to find the name of the perk, but came up empty handed and am getting quite frustrated over not being able to find this out :<.

Re: simple question >.>

Posted: April 19th, 2009, 5:12 am
by Drofder2004
Not sure action slot 3 is correct.
CJ uses 4

self giveWeapon("rpg_mp");
self SetActionSlot( 4, "weapon", "rpg_mp" );
self giveMaxAmmo("rpg_mp");

Re: simple question >.>

Posted: April 19th, 2009, 10:33 am
by JDogg
And if you want to switch to the weapon
self switchToWeapon("rpg_mp");

Re: simple question >.>

Posted: April 19th, 2009, 2:38 pm
by Drofder2004
No, its an actionslot, so it should switch when the player presses the bind that corresponds to that button.

Re: simple question >.>

Posted: April 19th, 2009, 2:51 pm
by Infinite
Drofder2004 wrote:Not sure action slot 3 is correct.
CJ uses 4

self giveWeapon("rpg_mp");
self SetActionSlot( 4, "weapon", "rpg_mp" );
self giveMaxAmmo("rpg_mp");
><. I never thought of using them together lol.

Re: simple question >.>

Posted: April 20th, 2009, 7:08 am
by JDogg
Drofder2004 wrote:No, its an actionslot, so it should switch when the player presses the bind that corresponds to that button.
Ah yeah, my bad.