icecreamassassin Posted September 22, 2015 Share Posted September 22, 2015 So I have a script attached to chairs in my museum library and when you use the chair it waits for you to fully sit then asks if you would like to read from the library collection. If you choose yes it will add a copy of each book from a FormList. THEN it SHOULD play the reading book animation which I can't seem to get working properly and it SHOULD open the player inventory. After reading as you wish, when you stand up the books are removed. So... How can get a 3rd person camera view and the read while sitting animation going? and How can I get the inventory to open. I CAN get the inventory to open using the force argument but it opens it as a gift window with the player in both panes and requires you to hold shift and press E to read a book. Here's what I have and it functions fine for the item control but the Idle Animation doesn't seem to work Scriptname DBM_ReadingChairScript extends ObjectReference Message Property DBM_ReadChairMSG Auto FormList Property BookList Auto Auto State Waiting Event OnActivate(ObjectReference akActionRef) if akActionRef == Game.GetPlayer() Utility.Wait(3.5) int BTN = DBM_ReadChairMSG.show() if BTN == 0 ; Yes Debug.SendAnimationEvent(Game.GetPlayer(), "ChairReadingStart") Game.GetPlayer().Additem(BookList, 1, absilent = True) Game.GetPlayer().OpenInventory() GoToState("Reading") Elseif BTN == 1 ; No Endif Endif EndEvent EndState State Reading Event OnActivate(ObjectReference akActionRef) if akActionRef == Game.GetPlayer() Game.GetPlayer().RemoveItem(BookList, 1, absilent = true) GoToState("Waiting") Endif EndEvent EndState Thanks Link to comment Share on other sites More sharing options...
icecreamassassin Posted September 22, 2015 Author Share Posted September 22, 2015 so I fixed the animation by changing out Game.GetPlayer().PlayIdle(IdleBook_Read) for: Debug.SendAnimationEvent(Game.GetPlayer(), "ChairReadingStart") so I just need to figure out the container opening function for the player inventory and hopefully a 3rd person camera setup Link to comment Share on other sites More sharing options...
sLoPpYdOtBiGhOlE Posted September 22, 2015 Share Posted September 22, 2015 (edited) The Idle name for ChairReadingStart event is IdleBook_Sitting_Reading.There is also an idle IdleBook_Sitting_TurnManyPages Also maybe you can usehttp://www.creationkit.com/ForceThirdPerson_-_Game For opening your own inventory, maybe you could use: Input.TapKey(Input.GetMappedKey("Quick Inventory")) Edited September 22, 2015 by sLoPpYdOtBiGhOlE Link to comment Share on other sites More sharing options...
icecreamassassin Posted September 22, 2015 Author Share Posted September 22, 2015 cool, the Input function did the trick for the inventory. The animation is working just fine already. Pulls out a book, reads and flips pages. I tried ForceThirdPerson before and it works ok, but I am trying to figure out how to anchor the camera to a 3rd person position in FRONT on the player so you can see them sitting and reading. Using ForceThirdPerson just puts it over their shoulder and you can't see the book being read. I've never worked with cameras at all so I'm not sure how crafting stations anchor to other positions like they do for instance. I assume it's a Nif Node thing. Link to comment Share on other sites More sharing options...
sLoPpYdOtBiGhOlE Posted September 22, 2015 Share Posted September 22, 2015 Maybe this:http://www.creationkit.com/SetCameraTarget_-_Game Not tried it, but player target themself...lol Link to comment Share on other sites More sharing options...
icecreamassassin Posted September 22, 2015 Author Share Posted September 22, 2015 I think I'll leave it as it is, it seems to look pretty good. Thanks for the help on the Input function. Link to comment Share on other sites More sharing options...
Recommended Posts