Jump to content

[LE] ObjectReference.PlayAnimation how to reset it?


ANaj

Recommended Posts

Hi, i am writing on a mod for enderal where they use custom Animations for an Object (it is not about Actor Animation).

 

The object is a star which is slightly visible.

after Papyruscommand ref.PlayAnimation("PlayAnim02") it starts glowing very bright, and keeps this state until end of game.

 

I want to reset it somehow, that it's back into the state where it is slighly visible.

Allready tried ref.reset(), ref.PlayAnimation("PlayAnim0X") (X means different numbers), ref.SetAnimationVariable[Float/Int/Bool], nothing works.

 

My dirty solution is disabling it, but i want that it can be activated again by the command ref.PlayAnimation("PlayAnim02")

Got a lot of headache because of this. Can someone help me?

 

Edit: I haven't worked very much with animations, is there a place in creation kit where i can look up which Animations are defined for this Object? Gameplay>Animations seems to be only for actor animations.

The BaseForm of the star is a MoveableStatic. Do i need to change something there?

Edited by ANaj
Link to comment
Share on other sites

You wrote: "I want to reset it somehow, that it's back into the state where it is slighly visible." You also try this out: "ref.PlayAnimation("PlayAnim0X") (X means different numbers)"

maybe next vanilla scripts bring light to you:

MG02AmuletScript.psc, dunDA14PortalScript.psc, DA04QuestScript.psc

 

It seems to be impossible to reset without using of "disable", that is life!

Link to comment
Share on other sites

 

Edit: I haven't worked very much with animations, is there a place in creation kit where i can look up which Animations are defined for this Object? Gameplay>Animations seems to be only for actor animations.

The BaseForm of the star is a MoveableStatic. Do i need to change something there?

 

Look into the meshes folder for this specific object. I don't know how Enderal created this object, but there is a good chance that this object has a behavior file like any good actor. And then you can convert this behavior file with hkxcmd. Or simply look into it with an editor. At the area where you find "PlayAnim02" there should be other possible animation events to call.

Link to comment
Share on other sites

Ok thanks for the answers,

 

When i use ref.PlayAnimation("PlayAnim01") it returns true, but nothing else happens.

I looked into the vanilla scripts but it seems like the guys of SureAI didn't made an animation for stop glowing.

 

 

Look into the meshes folder for this specific object. I don't know how Enderal created this object, but there is a good chance that this object has a behavior file like any good actor. And then you can convert this behavior file with hkxcmd. Or simply look into it with an editor. At the area where you find "PlayAnim02" there should be other possible animation events to call.

 

 

Thanks i will try that.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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