Jump to content

Looping animation & scripting help.


Swordfish42

Recommended Posts

Hello guys.

 

I'm trying to make a mod which is heavily based around pre-made thing from the DLC orrery.

 

I'm using the orrery dome piece (Architecture\Orrery\OrreryDome.nif). In the Orrery, its gears are constantly moving, after the orrery has been activated. I've made a script to activate the starting animation, which works, here:

 

scn Doorscript
Short state

begin onactivate
if ( state == 0 )
set state to 1
activate
endif
end

begin Gamemode
if ( state == 1 )
MaGgeneratorbase.playgroup forward 1
	set state to 2
elseif ( state == 2 )
endif
end

 

This script is attached to the door to the room where the animated piece is, so that it begins when the player enters the room. The problem is, the animation eventually stops. I haven't found any way to loop it, and the original Orrery script (DLCOrreryConsoleScript) doesn't help me. I've searched it for how to loop, but I can't make sense of it.

 

Tl;DR, I want to change the above script so that there is a looping animation.

 

Any help would be much appreciated :thumbsup:

Link to comment
Share on other sites

  • Recently Browsing   0 members

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