Jump to content

Scripting questions?


15gudasc

Recommended Posts

Hello everyone, so my question today is about scripting. How do I make a script where a trigger, like activating a terminal and reading a note on it, made 2 feral ghouls appear at both exits of the room? It would really help with this horror-like section of a mod I'm making! =) thank you!
Link to comment
Share on other sites

Place the two actors where you want them, double click them to open their property windows. In the reference field top of the window type something like Ghoul1REF, and Ghoul2REF make sure persistent reference is checked, and initially disabled. Add a script like the following to the terminal.

 

scn GhoulEnableScript

 

short once

 

Begin OnActivate

 

if once == 0

ghoul1ref.enable

ghoul2Ref.enable

set once to 1

endif

 

End

Link to comment
Share on other sites

thank you so much! the only problem is when i activate the terminal the ghouls pop up, but i cant read the note on the terminal, but i'm sure i'll figure it out! but still, thank you!

 

Sorry, my bad forgot the activate call.

 

 

scn GhoulEnableScript

 

short once

 

Begin OnActivate

 

if once == 0

ghoul1ref.enable

ghoul2Ref.enable

set once to 1

endif

 

activate

 

End

Link to comment
Share on other sites

  • Recently Browsing   0 members

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