| Preset Buy [message #267590] | 
			Wed, 20 June 2007 17:20   | 
		 
		
			
				
				
				
					
						  
						CdCyBoRg
						 Messages: 76 Registered: June 2005  Location: England
						
	Karma: 0
 
					 | 
					Recruit  | 
					 
  | 
		 
		 
	 | 
 
	
		I have made my map so when i press a switch, it buys a turret and puts in in XYZ for 1000 credits. 
 
How can i make the switch dissapear when the turret is bought But re-appear when the turret dies? 
 
Thanks in advance.
		
		
  I Am TeH OnE
		[Updated on: Wed, 20 June 2007 17:21] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 | 
	
		
		
			| Re: Preset Buy [message #267591 is a reply to message #267590] | 
			Wed, 20 June 2007 17:36    | 
		 
		
			
				
				
				  | 
					
						  
						Canadacdn
						 Messages: 1830 Registered: September 2005  Location: Temple of Nod
						
	Karma: 0
 
					 | 
					General (1 Star) PLECOS MASTER  | 
					 | 
		 
		 
	 | 
 
	
		Attach the script JFW_Preset_Buy_Poke to a switch or some other object and input the price, co-ordinates and the unit. 
 
Not sure about making it disappear, though. 
 
 
		
		
		[Updated on: Wed, 20 June 2007 17:49] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 | 
	
		
		
			| Re: Preset Buy [message #267592 is a reply to message #267591] | 
			Wed, 20 June 2007 17:43    | 
		 
		
			
				
				
				
					
						  
						CdCyBoRg
						 Messages: 76 Registered: June 2005  Location: England
						
	Karma: 0
 
					 | 
					Recruit  | 
					 
  | 
		 
		 
	 | 
 
	
		i know that, what i have is JFW_preset_buy_poke 
 
That all works, New plan. 
 
How can i attach a script to the object i am making with that script ^? 
 
so, i press the switch, it makes the turret buy with a script attached to it.
		
		
  I Am TeH OnE
		
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	
		
		
			| Re: Preset Buy [message #267599 is a reply to message #267597] | 
			Wed, 20 June 2007 17:57    | 
		 
		
			
				
				
				
					
						  
						CdCyBoRg
						 Messages: 76 Registered: June 2005  Location: England
						
	Karma: 0
 
					 | 
					Recruit  | 
					 
  | 
		 
		 
	 | 
 
	
		what do you mean by that? and what script do i attach to the turret to create another object when the turret dies?
		
		
  I Am TeH OnE
		
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	| 
		
 |