| Author | 
            Message | 
        
        
			| 
				
				 dragonxp 
				
				
					 Joined: Wed Sep 09, 2009 3:16 am Posts: 3032 Location: Somewhere in the universe
				 
				 
			 | 
			
				
				  Question: how to mount a gun on a dropship  
					
						can anyone help please? so i need to use lua or not?
  SOLVED! 
					
							
  
							
    							Last edited by dragonxp on Sat Oct 17, 2009 2:47 am, edited 1 time in total. 
    						 
						
  
			 | 
		
		
			| Mon Oct 05, 2009 12:10 am | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Benpasko 
				
				
					 Joined: Sun Aug 09, 2009 9:26 am Posts: 1633
				 
				 
			 | 
			
				
				  Re: Question: how to mount a gun on a dropship  
					
						You'll probably need Lua. I'm not an expert, and wouldn't know the exact method, but I'm pretty sure it involves attaching an ACrab to the ship, and making them not able to move. 
					
  
			 | 
		
		
			| Mon Oct 05, 2009 12:12 am | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Grif 
				REAL AMERICAN HERO 
				
					 Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
				 
				 
			 | 
			
				
				  Re: Question: how to mount a gun on a dropship  
					
						From an expert: Make a functionally aiming base class. Usually this is an ACrab for simplicity, but it's not the only way to do it.
  Use trigonometry to, through lua, perform a "pseudo-attachment;" that is, update the position of the turret relative to the rotation and velocity of the parent dropship.
  It's quite simple if you know lua. 
					
  
			 | 
		
		
			| Mon Oct 05, 2009 12:18 am | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 dragonxp 
				
				
					 Joined: Wed Sep 09, 2009 3:16 am Posts: 3032 Location: Somewhere in the universe
				 
				 
			 | 
			
				
				  Re: Question: how to mount a gun on a dropship  
					
						sounds relatively complicated. but i may try. 
					
  
			 | 
		
		
			| Mon Oct 05, 2009 12:28 am | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 MaximDude 
				
				
					 Joined: Wed Nov 22, 2006 3:19 pm Posts: 2073
				 
				 
			 | 
			
				
				  Re: Question: how to mount a gun on a dropship  
					
						Like this?  Well, it isn't  that complicated, but the main problem is to make it move naturally, as if it was a non-lua attachable...  
					
  
			 | 
		
		
			| Mon Oct 05, 2009 1:12 pm | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Rawtoast 
				
				
					 Joined: Mon Apr 06, 2009 9:41 am Posts: 712 Location: New York
				 
				 
			 | 
			
				
				  Re: Question: how to mount a gun on a dropship  
					
						I find that the best way to learn anything in Cortex Command is to just look at someone else's attempts.  As well intended and still very much helpful as advice from the Mod Making forums is, it's generally pretty hard to absorb and process if you're starting with a blank ini.  Download a mod with a dropship that has a gun attached to it and just pour through the scripting.  Change stuff around, see what breaks it and try and figure out why it broke.  I don't think anyone would even mind if you just started by respriting someone else's gun mounted drop ship (giving them credit, of course), and then moving on to change more physical attributes. 
					
  
			 | 
		
		
			| Mon Oct 05, 2009 3:16 pm | 
			
				
					 
					
					 
				    
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 dragonxp 
				
				
					 Joined: Wed Sep 09, 2009 3:16 am Posts: 3032 Location: Somewhere in the universe
				 
				 
			 | 
			
				
				  Re: Question: how to mount a gun on a dropship  
					
						MaximDude wrote: Like this? [img]DON'T%20IMAGE%20QUOTE[/img]
  Well, it isn't that complicated, but the main problem is to make it move naturally, as if it was a non-lua attachable...  almost just has to be a mg (machine gun.)  
					
  
			 | 
		
		
			| Mon Oct 05, 2009 11:12 pm | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Foa 
				Data Realms Elite 
				
					 Joined: Wed Sep 05, 2007 4:14 am Posts: 3966 Location: Canadida
				 
				 
			 | 
			
				
				  Re: Question: how to mount a gun on a dropship  
					
						dragonxp wrote: MaximDude wrote: Like this? [img]DON'T%20IMAGE%20QUOTE[/img]
  Well, it isn't that complicated, but the main problem is to make it move naturally, as if it was a non-lua attachable...  almost just has to be a mg (machine gun.) That is a heavy machine gun, large shells, deadly bullets, fast fire rate.  
					
  
			 | 
		
		
			| Tue Oct 06, 2009 2:56 am | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 MaximDude 
				
				
					 Joined: Wed Nov 22, 2006 3:19 pm Posts: 2073
				 
				 
			 | 
			
				
				  Re: Question: how to mount a gun on a dropship  
					
						Foa wrote: That is a very heavy machine gun, ♥♥♥♥ large shells, extremely deadly bullets, fast rather slow fire rate. Fixed.  
					
  
			 | 
		
		
			| Fri Oct 09, 2009 4:38 pm | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
	
		 |