Lihas 
 
 
		
			Member 
			
			
			
 
			
	Posts: 90 
	Threads: 11 
	Joined: Jan 2012
	
 Reputation: 
3
		
	 | 
	
		
			
Make decals disappear through scripts? 
			 
			
				I'm making a custom story, and I really want to have inactive decals, and then, through a specific script, make them active and visible. Any ideas?
			 
			
			
			
		 |  
	 
 | 
	| 01-26-2012, 02:55 PM  | 
	
		
	 | 
	
		
		palistov 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 1,208 
	Threads: 67 
	Joined: Mar 2011
	
 Reputation: 
57
		
	 | 
	
		
			
RE: Make decals disappear through scripts? 
			 
			
				Decals can't be set active or inactive. You'll need to create an entity out of them. Should be some thread somewhere in the resources/articles forum about this, but I'm not entirely sure.
			 
			
			
 
			
		 |  
	 
 | 
	| 01-26-2012, 03:02 PM  | 
	
		
	 | 
	
		
		Shadowfied 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 261 
	Threads: 34 
	Joined: Jul 2010
	
 Reputation: 
5
		
	 | 
	
		
			
RE: Make decals disappear through scripts? 
			 
			
				Would be convenient if they had a Active checkbox so SetEntityActive would work too, but it doesn't. (Just tried it) 
			 
			
			
 
			
		 |  
	 
 | 
	| 01-26-2012, 03:03 PM  | 
	
		
	 | 
	
		
		Lihas 
 
 
		
			Member 
			
			
			
 
			
	Posts: 90 
	Threads: 11 
	Joined: Jan 2012
	
 Reputation: 
3
		
	 | 
	
		
			
RE: Make decals disappear through scripts? 
			 
			
				I created an entity of them, but it still didn't work when I use SetEntityActive. Could it be something in the user variables in the settings of the entity?
			 
			
			
			
		 |  
	 
 | 
	| 01-26-2012, 03:51 PM  | 
	
		
	 | 
	
		
		Your Computer 
 
 
		
			SCAN ME! 
			
			
			
 
			
	Posts: 3,456 
	Threads: 32 
	Joined: Jul 2011
	
 Reputation: 
235
		
	 | 
	
		
			
RE: Make decals disappear through scripts? 
			 
			
				IIRC, SetEntityActive does not work on entities of type StaticProp.
			 
			
			
 
			
		 |  
	 
 | 
	| 01-26-2012, 06:01 PM  | 
	
		
	 |