Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make an entity disappear when an item is clicked on it
LoneWolf Offline
Senior Member

Posts: 308
Threads: 43
Joined: Sep 2010
Reputation: 0
#1
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
Find
Frontcannon Offline
Senior Member

Posts: 538
Threads: 10
Joined: Jul 2010
Reputation: 2
#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
Find
LoneWolf Offline
Senior Member

Posts: 308
Threads: 43
Joined: Sep 2010
Reputation: 0
#3
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
Find




Users browsing this thread: 1 Guest(s)