Jump to content

Linking Terminals to references.


Jojash

Recommended Posts

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

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

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 by Jojash
Link to comment
Share on other sites

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 by Jojash
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...