Jump to content

Question about scripting


moryndin

Recommended Posts

Okay i will begin this by saying i am new to scripting and realize that it is no easy thing to jump into. Recently i have been wanting to learn some oblivion scripts and make a Mod of my own. I have succeeded in making simple scripts such as teleporter the player with coords by activating a activator but i am now trying to set up a script where in when a pressure pad is activated it will unlock a door but for some reason i cannot seem to get the script that is attached to the activator to target the door. I would assume it is because i have not learned how to make the script point to a reference. I have had no luck at all to get any script to point to a reference not even the teleport script which i first tried to make it a MoveTo script but wouldnt accept any reference i tried. I kept running into a syntax error saying that the reference was invalid and could not be used. I have been searching the wiki for days to find out how to get it to work so i decided to make a post on the forums. If anyone could explain how to get references to work and how to get them to work in my unlock door script as well. I would very much appreciate any advice. Below is the last script i tried to get the unlock door script to work TimedUnlockGate1 is the object ID and i have also tried to put a reference ID there instead as well.

 

scn PressurePlateUnlock1

Begin OnActivate
TimedUnlockGate1.Unlock
End

Link to comment
Share on other sites

script point to a reference. I have had no luck at all to get any script to point to a reference not even the teleport script which i first tried to make it a MoveTo script but wouldnt accept any reference i tried. I kept running into a syntax error saying that the reference was invalid and could not be used.

 

Is the reference you are trying to use marked as persistent? It must be in order for you to use it.

Link to comment
Share on other sites

Is the reference you are trying to use marked as persistent? It must be in order for you to use it.

 

Ah, was not aware that i needed to do this nor did i know that you could. Will try this tonight and fool around with it further. thank you very much!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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