Jump to content

A Sleep Command in FO3 Scripting


ProjectEW

Recommended Posts

You can give you NPC a sleep AI package with a start time and a duration. You can also use the script command

 

NPCRef.Setunconscious 1/0

 

Though that will not make them lie down, but you could apply that after getting them to lie down.

Well, actually, I meant a scripting command, like a delay before executing the rest of the script, not making an NPC go to sleep.

Link to comment
Share on other sites

No, there is not, but you can emulate one. Fallout 3 scripts will always execute completely within a single frame, so attempting to put a script to sleep will cause the game to freeze. What you want to do instead is have your script run a timer while you don't want it to be doing anything else. Have a look at my tutorial on Staged Timers for a detailed look at this type of script.

 

Cipscis

Link to comment
Share on other sites

  • Recently Browsing   0 members

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