Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

[Solved] Another script needing help


DsoS
 Share

Recommended Posts

So this script is suppose to make a Oblivion Cage move up and down continuously when the player is in the cell (and only when)

The first part works correctly, the cage moves down (playGroup forward) but when it is suppose to move back up (playGroup Backward) it does not work. The cage just pops back to the start and starts moving down again.

Anyone able to help me again?


SCN aaDSoSFNSObCageScript


short busy


Begin GameMode

	if Player.GetInCell aaDSoSFNSINT007 && busy == 0

		playgroup forward 0

		set busy to 1

	endif


	if busy == 1  && isAnimPlaying == 0

		playgroup backward 0

		set busy to 0

	endif

End

Link to comment
Share on other sites

easy fix. When the second if statement runs it sets the first ot be true again...so before you see the backward animation again it starts the forward.

SCN aaDSoSFNSObCageScript 


short busy 


Begin GameMode 

        if Player.GetInCell aaDSoSFNSINT007 && busy == 0 && isAnimPlaying == 0

                playgroup forward 0 

                set busy to 1 

        endif 


        if busy == 1  && isAnimPlaying == 0 

                playgroup backward 0 

                set busy to 0 

        endif 

End

Link to comment
Share on other sites

its works now....

now for the Rant...

damnit all. I knew it was something stupid like a single line add-on.... funny thing is, I had that on there and removed it thinking only the second if statement would need it XD

anyway...

Thank you Mage for the help :pints:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...