Narcolepsy?

Post » Sat May 28, 2011 8:23 pm

Was wondering how to go about making a perk or disease in which a script would cause the player to fall to the ground and sleep randomly to simulate narcolepsy. :)
setunconscious only seem to make it so they cannot move with their eyes closed but they are still standing?
any help would be appreciated.
thank you
User avatar
LuCY sCoTT
 
Posts: 3410
Joined: Sun Feb 04, 2007 8:29 am

Post » Sat May 28, 2011 6:30 pm

Howdy!

What you'll want to do is knock the player down, add a sound effect of some kind (optional), and disable the player controls for a few seconds. It would also be cool to add the blurred vision (as when you first come-time after being born), but I don't know how to do that. The pseudocode for rest is:

PushActorAway player -1PlaySound DisablePlayerControls 1 1 1 1 0 0 0


You can check out the WIKI page on http://geck.gamesas.com/index.php/DisablePlayerControls to learn more about the options there.

Luck,

Miax
User avatar
luis dejesus
 
Posts: 3451
Joined: Sun Aug 19, 2007 7:40 am

Post » Sat May 28, 2011 4:20 pm

Thank you Miaximus, will try that out :)
User avatar
Charlie Ramsden
 
Posts: 3434
Joined: Fri Jun 15, 2007 7:53 pm

Post » Sat May 28, 2011 5:31 pm

The 'baby born' has a rather long persistance, and I am not sure if it ever goes away on its own. I would suggest this one instead. You call it once and it clears up after about 8 seconds.

IMOD MS04InjectISFX

User avatar
Strawberry
 
Posts: 3446
Joined: Thu Jul 05, 2007 11:08 am

Post » Sat May 28, 2011 11:31 am

The 'baby born' has a rather long persistance, and I am not sure if it ever goes away on its own. I would suggest this one instead. You call it once and it clears up after about 8 seconds.

IMOD MS04InjectISFX



Very cool, thanks! :)

That is a nice one, filing that one for future use as well. :read:
User avatar
Angel Torres
 
Posts: 3553
Joined: Thu Oct 25, 2007 7:08 am


Return to Fallout 3