| LoneWolf   Senior Member
 
 Posts: 308
 Threads: 43
 Joined: Sep 2010
 Reputation: 
0
 | 
			| How to make an entity disappear when an item is clicked on it 
 
				As title says. I have the entity, the particle effects to occur and the sound. I just dont know the script to use to make the scripts all occur.
 i am using a chemical jar which liek in the game once i click on the slime web it should disappear. I also have the entity active function down. All i need is the script which activates it all when i click on it using the item (chemical jar).
 |  | 
	| 12-14-2010, 12:29 PM |  | 
	
		| Frontcannon   Senior Member
 
 Posts: 538
 Threads: 10
 Joined: Jul 2010
 Reputation: 
2
 | 
			| RE: How to make an entity disappear when an item is clicked on it 
 
				AddUseItemCallback -> chemJar on Slime -> SetEntityActive("slime", false);
			 
 ╔═════════════════╗
 ☺ Smoke weed everyday ☺
 ╚═════════════════╝
 |  | 
	| 12-14-2010, 05:50 PM |  | 
	
		| LoneWolf   Senior Member
 
 Posts: 308
 Threads: 43
 Joined: Sep 2010
 Reputation: 
0
 | 
			| RE: How to make an entity disappear when an item is clicked on it 
 
				Thanks, i was using a collidecallback... no idea why.
			 |  | 
	| 12-14-2010, 06:10 PM |  |