danimora2012 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 47 
	Threads: 18 
	Joined: Apr 2012
	
 Reputation: 
0
		
	 | 
	
		
			
  
How do i insert potions into furniture? 
			 
			
				How do i insert potions, oil ,keys and suff into furniture like tables and containers?
			 
			
			
			
				
(This post was last modified: 09-15-2012, 12:08 PM by danimora2012.)
 
				
			 
		 |  
	 
 | 
	| 09-15-2012, 11:44 AM  | 
	
		
	 | 
	
		
		EXAWOLT 
 
 
		
			Member 
			
			
			
 
			
	Posts: 113 
	Threads: 14 
	Joined: Apr 2012
	
 Reputation: 
3
		
	 | 
	
		
			
RE: How do i insert potions into furniture? 
			 
			
				some entities can be checked as "breakeable", and for example a vase, in the entity tab, you can set "contained item" and choose what u want. 
then for exe. a table, u need a script: 
SetEntityCallbackFunc(string& asName, string& asCallback); 
Calls a function when the player interacts with a certain entity. 
Callback syntax: void MyFunc(string &in asEntity, string &in type)  
Type depends on entity type and includes: “OnPickup”, “Break”, “OnIgnite”, etc 
then in the void youll have: 
SetEntityActive("?", true);
			 
			
			
 
simply nuff said 
 
 
 
 
 
			
		 |  
	 
 | 
	| 09-15-2012, 03:30 PM  | 
	
		
	 | 
	
		
		FlawlessHappiness 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 3,980 
	Threads: 145 
	Joined: Mar 2012
	
 Reputation: 
171
		
	 | 
	
		
			
RE: How do i insert potions into furniture? 
			 
			
				Otherwise you would just zoom into the drawers and place it inside
			 
			
			
 
Trying is the first step to success. 
			
		 |  
	 
 | 
	| 09-15-2012, 06:20 PM  | 
	
		
	 |