Jump to content

Idle problem


Progmath

Recommended Posts

Posted

After ending the new idle an npc is starting to move legs endlessly in all the common standing idles.

 

(for some reason i can't post links, nor attach a vid to my message)

Youtube:              sCmxVQqlijk

 

I'm getting npc play idle (kf file from Human Chairs).
additem token
playidle 1.
Everything is going right. Actor is playing anim.
removeitem token
playidle 1
Actor stops the new animation but if it is standing, it's legs continue to slowly move! An effect persists after the target sits, walks, after cell reloads. As soon as the npc is standing idle, it's legs are moving.
 
I've tried to write pickidle 1 several times. Tried to use playgroup idle 1. Nothing changed.
I've tried to use reset3dstate - it helps, but only for one current idle. For example, if the target is readlig book and moving it's feet, then after the command it will stand like the good npc should. But after idle is renewed, the actor is doing it's dance again!
 
Is that kf file really bad and unusable?
Is there a way to make my little puppets behave?
 

Posted

After ending the new idle an npc is starting to move legs endlessly in all the common standing idles.

 

(for some reason i can't post links, nor attach a vid to my message)

Youtube:              sCmxVQqlijk

 

I'm getting npc play idle (kf file from Human Chairs).

additem token

playidle 1.

Everything is going right. Actor is playing anim.

removeitem token

playidle 1

Actor stops the new animation but if it is standing, it's legs continue to slowly move! An effect persists after the target sits, walks, after cell reloads. As soon as the npc is standing idle, it's legs are moving.

 

I've tried to write pickidle 1 several times. Tried to use playgroup idle 1. Nothing changed.

I've tried to use reset3dstate - it helps, but only for one current idle. For example, if the target is readlig book and moving it's feet, then after the command it will stand like the good npc should. But after idle is renewed, the actor is doing it's dance again!

 

Is that kf file really bad and unusable?

Is there a way to make my little puppets behave?

This should work:

 

if getitemcount (your idle token) > 0

removeitemns (your idle token) 1

if (IsThirdPerson == 0)

ToggleFirstPerson 0

endif

pickidle

update3d

ToggleFirstPerson 1

endif

 

You may or may not need the Update3d command, depending on the idle. Likewise with theToggleFirstPerson command, depending on whether you play in 1st-person POV.

Posted

If you are writing your own script to invoke an idle and then remove it, DON'T use tokens and pickidle. Pickidle is easily broken by other animation mods.

 

Use PlayIdle instead. It was introduced in OBSE20 and is superior in almost every way.

Posted

update3d

Thanks a lot, that line solved the problem!

 

 

PlayIdle

 

Thank you too. Nice fucntion to force stubborn doll to play anim immediately.

 

 

I've finished the mod - Chairing Touch on nexus. With it you will be able to turn NPC into a sittable furniture with one spell.

Unfortunately i'm still not allowed to post links (a weird rule if you ask me).

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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