![]() |
|
SF Stargazer Valve - 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: SF Stargazer Valve (/thread-1582.html) |
SF Stargazer Valve - Yuri6037 - 07-02-2016 Hey all, I just got an idea for LanAI Next to force the stargazer valve to work, however I need some checks : Can you link the secondary node where to pump/push resource to using pure Starfall ? Can you retrieve a Boolean value corresponding to is player in buddies, so I know if I can auto link ? Also I have another question not related to valve : What is the purpose of the tricorder hooks, and how does it work ? RE: SF Stargazer Valve - Red The Blue Color - 07-02-2016 (07-02-2016, 08:30 AM)Yuri6037 Wrote: Hey all, http://www.teamscm.co.uk/sfdoc/classes/Entity.html#link < link function Starfall docs are incredibly helpful ![]() I believe Player:getFriendStatus() would do the buddy thing but im not 100 percent sure and its only usable in clientside I believe tricorders hooks are just for logging as they seem to only tell you when a player is attempting usage and if they succeeded in using and has no option to stop them. RE: SF Stargazer Valve - Person8880 - 07-02-2016 You're not going to be able to "force the stargazer valve to work" through Starfall. It's not as if the Starfall methods reimplement what they're binding, they just use the standard link which will prevent the link to a node owned by a different player to the valve's owner. The tricorder hooks are so you can make your chip respond to tricorder usage. Return true in "CheckTricorderOverride" to allow them to use right click on it, and then "TricorderOverride" is called when the bar is filled up. (07-02-2016, 09:30 AM)Red The Blue Color Wrote: I believe Player:getFriendStatus() would do the buddy thing but im not 100 percent sure and its only usable in clientsideThis is Steam friend status, not prop protection. RE: SF Stargazer Valve - Yuri6037 - 07-02-2016 (07-02-2016, 12:36 PM)Person8880 Wrote: You're not going to be able to "force the stargazer valve to work" through Starfall. It's not as if the Starfall methods reimplement what they're binding, they just use the standard link which will prevent the link to a node owned by a different player to the valve's owner. I say force because when I wire nothing but just link the valve to a second resource node nothing works, so that's why I would like to know if Starfall arrives to start the valve. And about the prop protection ? Is there any way I know if I have the permission to link to the node ? Or is there a message given when you try the link method ? I ask that because I check the doc by the internet site teamscm.co.uk/sfdoc/ and on that site many things are missing and for example the waterLevel method is not existing, and many functions are not explained. About the tricorder that was just to know the usage of it but visibky it's not serving anything... RE: SF Stargazer Valve - Person8880 - 07-02-2016 The web docs are way out of date because all documentation is in the editor now. Press the ? button at the top right of the editor and search away. |