Have a question about modding, modelling or skinning? Have a tutorial to post? Post here!
	Moderator: Core Staff
			
		
		
			- 
				
								Infinite								  
			
 
						- PC Team

 			
		- Posts: 2385
 		- Joined: April 11th, 2008, 4:39 pm
 		
		
											- Location: Roswell, Georgia
 
							
						
		
		
						
						
													
							
						
									
						Post
					
								by Infinite » April 19th, 2009, 2:17 am
			
			
			
			
			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 :<.
 
			
			
									
									
"The beauty of a living thing is not the atoms that go into it, but the way those atoms are put together."
"A still more glorious dawn awaits- not a sun rise, but a galaxy rise. A morning filled with four hundred billion suns: the rising of The Milky Way." - Carl Sagan
[15:19] _MattyTÒ£eFarmer_: infinate
[15:19] _MattyTÒ£eFarmer_: u r smarter than me
 
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
								Drofder2004								  
			
 
						- Core Staff

 			
		- Posts: 13315
 		- Joined: April 13th, 2005, 8:22 pm
 		
		
											- Location: UK, London
 
							
						
		
		
						
						
													
							
						
									
						Post
					
								by Drofder2004 » April 19th, 2009, 5:12 am
			
			
			
			
			Not sure action slot 3 is correct.
CJ uses 4
self giveWeapon("rpg_mp");
self SetActionSlot( 4, "weapon", "rpg_mp" );
self giveMaxAmmo("rpg_mp");
			
			
									
									
Virgin Media 20Mb Broadband: 
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010 
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			
								JDogg								  
			 
						- Too cool for CoDJumper

 			
		- Posts: 3617
 		- Joined: August 28th, 2007, 11:46 am
 		
		
											- Location: Melbourne, Australia
 
							
						
		
		
						
						
													
							
						
									
						Post
					
								by JDogg » April 19th, 2009, 10:33 am
			
			
			
			
			And if you want to switch to the weapon 
self switchToWeapon("rpg_mp");
			
			
									
									
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
								Drofder2004								  
			
 
						- Core Staff

 			
		- Posts: 13315
 		- Joined: April 13th, 2005, 8:22 pm
 		
		
											- Location: UK, London
 
							
						
		
		
						
						
													
							
						
									
						Post
					
								by Drofder2004 » April 19th, 2009, 2:38 pm
			
			
			
			
			No, its an actionslot, so it should switch when the player presses the bind that corresponds to that button.
			
			
									
									
Virgin Media 20Mb Broadband: 
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010 
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
								Infinite								  
			
 
						- PC Team

 			
		- Posts: 2385
 		- Joined: April 11th, 2008, 4:39 pm
 		
		
											- Location: Roswell, Georgia
 
							
						
		
		
						
						
													
							
						
									
						Post
					
								by Infinite » April 19th, 2009, 2:51 pm
			
			
			
			
			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.
 
			
			
									
									
"The beauty of a living thing is not the atoms that go into it, but the way those atoms are put together."
"A still more glorious dawn awaits- not a sun rise, but a galaxy rise. A morning filled with four hundred billion suns: the rising of The Milky Way." - Carl Sagan
[15:19] _MattyTÒ£eFarmer_: infinate
[15:19] _MattyTÒ£eFarmer_: u r smarter than me
 
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			
								JDogg								  
			 
						- Too cool for CoDJumper

 			
		- Posts: 3617
 		- Joined: August 28th, 2007, 11:46 am
 		
		
											- Location: Melbourne, Australia
 
							
						
		
		
						
						
													
							
						
									
						Post
					
								by JDogg » April 20th, 2009, 7:08 am
			
			
			
			
			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.