Team Spartan Cookies & Milk Forums
Ability to read inputs - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: Ability to read inputs (/thread-3503.html)



Ability to read inputs - The17thDoctor - 11-11-2020

Could be great to have a function to read an entity's input values given we have toolgun permission.


RE: Ability to read inputs - Person8880 - 11-11-2020

This is possible, but it's kinda breaking the rules of the Wiremod system in that an entity's inputs are supposed to be private. What use cases do you have for this?


RE: Ability to read inputs - The17thDoctor - 11-11-2020

I was thinking of any TSCM entity that has pre-requisites other than having an input set to 1 to function like shields, cloak or any entity requiring energy.
A starfall could not tell the difference between "Inactive" and "Awaiting Activation"


RE: Ability to read inputs - Person8880 - 14-11-2020

I've added a "State" output to the shield emitters, cloaking device and forcefield emitter which has 3 possible values:
  • "Deactivated"
  • "Awaiting Activation"
  • "Activated"