ZeroCore Posted December 3, 2010 Share Posted December 3, 2010 Okay, I've browsed just about every site I can find for help on a terminal, and I still have yet to find anything useful for what I'm trying to do. In short; how do I make a terminal do anything besides display notes? What I'm trying to do is to get a terminal to activate a light when a certain command is selected, but I can't figure out how to get it to work at all. Can someone give me a step-by-step of how to rig up a terminal in GECK to affect another reference please? Thanks in advance. Link to comment Share on other sites More sharing options...
Samustus Posted December 4, 2010 Share Posted December 4, 2010 (edited) I might be able to help you. -In your mod you have a light switch called 'ZCLightSwitch01REF' reference, for example. Attached to that reference you have an Activator called "'ZCLightSwitch' which has an assoicated Script called "ZCLights". Imagine it as the REF as the switchbox, the activator as the switch and the script as the switching action. The activator and script can be used for many different light switches, as long as they are attached to different REFs.-Open up a Terminal ID that you have created.-Under 'Menu Items' add a new line saying "Turn light on", for example.-Make sure "Turn light on" appears in the list and is higlighted.-In the 'Item Result Script' add the line "ZCLightSwitch01REF.activate Player 1" What that should do is to activate the REF and run the associated activator and script. This is handy for when you wish to have a command like "Turn on all lights" Then you could have a list of switches. ZCLightSwitch01REF.activate Player 1ZCLightSwitch02REF.activate Player 1ZCLightSwitch03REF.activate Player 1 Note, however, that if a light is already on, then you will turn it off. :tongue: So something like this will help : if ZCLightSwitch01REF.getDisabled == 0ZCLightSwitch01REF.activate Player 1endif Or something like that. I can't remember precisely, but you should be able to figure it out now. Hope this helps. Edited December 4, 2010 by Samustus Link to comment Share on other sites More sharing options...
ZeroCore Posted December 8, 2010 Author Share Posted December 8, 2010 I might be able to help you. -In your mod you have a light switch called 'ZCLightSwitch01REF' reference, for example. Attached to that reference you have an Activator called "'ZCLightSwitch' which has an assoicated Script called "ZCLights". Imagine it as the REF as the switchbox, the activator as the switch and the script as the switching action. The activator and script can be used for many different light switches, as long as they are attached to different REFs.-Open up a Terminal ID that you have created.-Under 'Menu Items' add a new line saying "Turn light on", for example.-Make sure "Turn light on" appears in the list and is higlighted.-In the 'Item Result Script' add the line "ZCLightSwitch01REF.activate Player 1" What that should do is to activate the REF and run the associated activator and script. This is handy for when you wish to have a command like "Turn on all lights" Then you could have a list of switches. ZCLightSwitch01REF.activate Player 1ZCLightSwitch02REF.activate Player 1ZCLightSwitch03REF.activate Player 1 Note, however, that if a light is already on, then you will turn it off. :tongue: So something like this will help : if ZCLightSwitch01REF.getDisabled == 0ZCLightSwitch01REF.activate Player 1endif Or something like that. I can't remember precisely, but you should be able to figure it out now. Hope this helps. It did. Thanks. ^^ Link to comment Share on other sites More sharing options...
Recommended Posts