Promote touchplate from wire extras #2639
Replies: 8 comments
-
Take a look at https://github.com/thegrb93/StarfallEx/blob/a64078e0930a9e4b53974ff30213d88138d63fe0/lua/starfall/libs_sv/entities.lua#L311-L325 |
Beta Was this translation helpful? Give feedback.
-
Oh, awesome! I was really hoping something like that would exist. |
Beta Was this translation helpful? Give feedback.
-
So a pressure plate |
Beta Was this translation helpful? Give feedback.
-
This already exists actually, in wire extras https://github.com/wiremod/wire-extras/tree/master/lua/entities/gmod_wire_touchplate |
Beta Was this translation helpful? Give feedback.
-
Could be brought into official wire maybe with a little bit of refactoring. If we want the weight functionality that wouldn't be too hard. Just add up the forces/weights of all the entities onto the prop and have a minimum force to trigger it. |
Beta Was this translation helpful? Give feedback.
-
So closing this unless you want to turn this issue into discussion for promoting the touch plate/pressure pad into regular wiremod. |
Beta Was this translation helpful? Give feedback.
-
Well, yes, that was the idea. |
Beta Was this translation helpful? Give feedback.
-
If the license of both repo are the same then its trivial. Its just a matter of whether it's in working condition. |
Beta Was this translation helpful? Give feedback.
-
A button that responds to touch/force.
In essence, like a physical prop "button" made with a hydraulic, but in Lua form. A player, prop, or some other physical trigger will activate the button by touching it or applying force (how could this be measured?) to it. Maybe a specific amount of force has to be applied to trigger the button. An alternative idea could simply be a "force detector", or on the easier end of the spectrum, a "touch detector" (so just a trigger?).
Only issue is that I don't know if anything like that would be possible.
Beta Was this translation helpful? Give feedback.
All reactions