Jump to content

Terminal Problems


ZeroCore

Recommended Posts

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

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 1

ZCLightSwitch02REF.activate Player 1

ZCLightSwitch03REF.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 == 0

ZCLightSwitch01REF.activate Player 1

endif

 

Or something like that. I can't remember precisely, but you should be able to figure it out now.

 

Hope this helps.

Edited by Samustus
Link to comment
Share on other sites

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 1

ZCLightSwitch02REF.activate Player 1

ZCLightSwitch03REF.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 == 0

ZCLightSwitch01REF.activate Player 1

endif

 

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

  • Recently Browsing   0 members

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