Jojash Posted March 30, 2013 Share Posted March 30, 2013 So, I've been trying to find a way to link a terminal to a reference within a script, but unfortunately so far I can't seem to think of a way. Is there a way to do this? Thanks in advance! Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted March 30, 2013 Share Posted March 30, 2013 You mean as in to set the terminal's Linked Ref property via script? You can't do that. Linked Refs have to be set in the editor, and are referenced with GetLinkedRef. If you have an item like a terminal that needs to control multiple objects, you'll have to name the objects, and come up with a slightly more creative way to control things. Link to comment Share on other sites More sharing options...
Jojash Posted March 30, 2013 Author Share Posted March 30, 2013 (edited) If I created an actor, gave them a reference and then linked a terminal to it, and then changed what their reference applied to, for example, I make a reference called "TestRef", link a terminal to it and then in a script write something like "Set TestRef to GetFirstRef 200 1 0", would the terminal then be linked to the new reference? Edited March 30, 2013 by Jojash Link to comment Share on other sites More sharing options...
jazzisparis Posted March 30, 2013 Share Posted March 30, 2013 Hi Jojash, It would really help if you elaborate on what, exactly, you are trying to accomplish. Link to comment Share on other sites More sharing options...
Jojash Posted March 31, 2013 Author Share Posted March 31, 2013 (edited) jazzisparis, on 30 Mar 2013 - 23:40, said:Hi Jojash, It would really help if you elaborate on what, exactly, you are trying to accomplish.My apologies on being vague, my goal is to be able to get one terminal to control different references depending on a script. EDIT: Having thought on the matter, I've realised that I don't actually need the terminal to control *any* references. I can just use it to set variables depending on what the user selects within the terminal and then use a script with those variables to get the result I desire. Thank you so much for answering my question though, Gribbleshnibit8! I should also thank you for telling me about the "MessageBoxEx" function a while ago, as that's proving vital to my current mod! :smile: One other question though, does being in a terminal count as menumode or gamemode? I assume it's menumode considering that everything else in-game stops. Edited March 31, 2013 by Jojash Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted April 1, 2013 Share Posted April 1, 2013 It's a MenuMode, yes. Hacking is 1055, and I believe that standard terminal is 1057. Link to comment Share on other sites More sharing options...
Recommended Posts