Jump to content

Recommended Posts

Posted
Is there a command like that? The sleep command is in C++, and it goes sleep(x), where x is the amount of time to delay, before moving on with the code. Is it possible, with or without FOSE?
Posted

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.

Posted
  On 7/8/2010 at 10:23 PM, pkleiss said:

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.

Posted

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

  • Recently Browsing   0 members

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