Search found 2 matches

by Broken|Glass
Sun Oct 14, 2012 6:58 am
Forum: Modding
Topic: Trigger Pressure Plates by certain item?
Replies: 6
Views: 5594

Re: Trigger Pressure Plates by certain item?

viewtopic.php?f=14&t=3620

I posted this a while back, and this works perfectly.
by Broken|Glass
Tue Oct 09, 2012 11:41 pm
Forum: Modding
Topic: How to check for a specific item on a pressure plate
Replies: 2
Views: 3227

How to check for a specific item on a pressure plate

It took me about an hour to figure this out, so I wanted to share it with everyone. The goal was to get a specific item to trigger a pressure plate (only when the item is placed on the plate) and open a door. function checkWhatActivated() if findEntity("a1") ~= nil then if a1.x == p1.x and...