Can NPCs use sneak & how?

Post » Fri May 27, 2011 10:16 pm

I imagine some of the old people in MW would look like hunchbacks if they used the sneak animation, I think It would add some needed diversity but the question is if it's possible?
User avatar
Farrah Lee
 
Posts: 3488
Joined: Fri Aug 17, 2007 10:32 pm

Post » Fri May 27, 2011 9:21 pm

I imagine some of the old people in MW would look like hunchbacks if they used the sneak animation, I think It would add some needed diversity but the question is if it's possible?

Its possible, have you ever done the quest where fargoth hides his ring in that stump? I'm not sure how to make it work, but making a script that has the "forcesneak" command should make them sneak.(i'm horrible at scripting, so maybe someone else can explain it better)
User avatar
Markie Mark
 
Posts: 3420
Joined: Tue Dec 04, 2007 7:24 am

Post » Fri May 27, 2011 6:34 pm

From MSFD v9:

Forcing sneak movement
ForceSneak
ClearForceSneak
"Actor_ID"->ForceSneak

GetForceSneak ( returns Boolean/short)
If ( "actor_ID"->GetForceSneak == 1 )

The ForceSneak command puts the Actor in sneak mode, all movement will be performed in
sneaking. ClearForceSneak terminates ForceSneak mode. Unfortunately there does not seem
to be a corresponding command to force running (added with Tribunal). GetForceSneak
returns one if ForceSneak mode is active on the calling Actor. Check the LookoutScript
script for an example.

User avatar
Stacey Mason
 
Posts: 3350
Joined: Wed Nov 08, 2006 6:18 am

Post » Fri May 27, 2011 9:51 pm

Awesome thanks guys! Now to figure out which NPCs this hunchback would apply to and add it to their current scripts or add a script to them. hmm.
User avatar
Robert Jr
 
Posts: 3447
Joined: Fri Nov 23, 2007 7:49 pm


Return to III - Morrowind