Jump to content

2 things i need help with.


salar000zarepour

Recommended Posts

1 how do i link a switch to a door to open or like if its is invisible but when using switch its visible. 2 i always have problems with geck and its dosent respond so i want to save my half mod for example but when i continue with loading that esp and edit it just makes another esp file i want i way to continue using 1 .esp file not two is that possible if it is pleas guide me thank you. :biggrin:
Link to comment
Share on other sites

I don't really know about that, I think the vault doors all ready come with it set up, but for others I don't know.
Link to comment
Share on other sites

This can be done a number of ways, probably the easiest is to make you door and switch persistant references and call them a name eg.mydoor, my switch. First your switch will be your activator, on this item you will need a script, create a bool called locked/visible which you use to check to see what state it the door is in. So now in the onactivate block have an if/else block that check if(locked) unlock mydoor

Begin onactivate
if(locked)
{
mydoor.unlock
set locked to false //check will now show unlocked
}
else{
mydoor.lock
set locked to true //check will now show locked
}

 

This is mainly from the top of my head, so its all pseudo code for the most part you will need to check out the proper function syntax etc. If the above script is a bit too confusing then you need to check out the internet first as its quite an easy thing to get working.

 

The best place to get scripting tutorials is the CS wiki and the geck wiki. If you are looking for how doors switches work in game use the geck to find the National Guard Depot, there is a nice setup with a switch link there, also vault 101, but thinking about the above they might do it by reference linking which is another form of referencing through a variable instead of a reference name like mydoor.

Link to comment
Share on other sites

This can be done a number of ways, probably the easiest is to make you door and switch persistant references and call them a name eg.mydoor, my switch. First your switch will be your activator, on this item you will need a script, create a bool called locked/visible which you use to check to see what state it the door is in. So now in the onactivate block have an if/else block that check if(locked) unlock mydoor

Begin onactivate
if(locked)
{
mydoor.unlock
set locked to false //check will now show unlocked
}
else{
mydoor.lock
set locked to true //check will now show locked
}

 

This is mainly from the top of my head, so its all pseudo code for the most part you will need to check out the proper function syntax etc. If the above script is a bit too confusing then you need to check out the internet first as its quite an easy thing to get working.

 

The best place to get scripting tutorials is the CS wiki and the geck wiki. If you are looking for how doors switches work in game use the geck to find the National Guard Depot, there is a nice setup with a switch link there, also vault 101, but thinking about the above they might do it by reference linking which is another form of referencing through a variable instead of a reference name like mydoor.

 

 

 

can you tell me step by step in the geck like whats a bool how do i get the code in do i use script im new at switches scripts and etc but im good at navmesh and snap and etc and i know it dosent really matter to those by the way whats the easiest ? is it ready or do i have to do that from scratch any way i named the id of my door VGearDoor202 and its name is Vault Door and switch is the default vault 101 control panel.

Link to comment
Share on other sites

If you have any background in coding it should be easy, but the main thing to do is learn those basics. Then learn how to use functions. Also have some good reference pages like the wiki's, the oblivion one is more robust and you should look through that as 90% is carried over. The scripting that is used is very much like Visual basic, verbose, ie lots of words to do simple things. Its easy enough to get a grasp of.

 

Also post a screen of your talking gun, it sounds highly amusing.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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