Jump to content

Enabling NPCs


JonesenoJ

Recommended Posts

Hello again, I was wondering why I can't get my script to save when I add .enable to it, this is how my script looks.

scn BrokenBot

short button

Begin OnActivate
 Showmessage 01RepairBot
end

Begin menumode 1001
set button to getbuttonpressed
 if (button ==1)
  01ProtectronActivatorREF.disable
  01ProtectronREF.enable
 endif
end

01ProtectronActivatorREF is the activator I want disabled if the NPC is enabled.

01ProtectronREF is the NPC I want enabled.

 

Thank you.

Link to comment
Share on other sites

Did you check their "persistent" setting when you placed them into the world? From the "Activator" page "Notes":

Scripted activators should be marked persistent or their scripts may not run certain blocks like OnReset or OnLoad.
Persistent activators that are disabled will still execute their scripts.

 

-Dubious-

Link to comment
Share on other sites

  • Recently Browsing   0 members

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