ProjectEW Posted July 8, 2010 Share Posted July 8, 2010 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? Link to comment Share on other sites More sharing options...
pkleiss Posted July 8, 2010 Share Posted July 8, 2010 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. Link to comment Share on other sites More sharing options...
ProjectEW Posted July 9, 2010 Author Share Posted July 9, 2010 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 More sharing options...
Cipscis Posted July 9, 2010 Share Posted July 9, 2010 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 More sharing options...
Recommended Posts