Neru2308 Posted January 28, 2017 Share Posted January 28, 2017 I search, many topics about basic scripts for my new home, but i got a big headache tryng to make a script work, mostly, because i'm a newbie -.- (youtube help alot, but in this case, can't find)Soo, i just want make a Rug become a lay down spot for player, so, i made a activator with a rug as a model but i need a script to make it work and i'm lost. Anyone can guide me or help me? can't call this a script butScriptname teste2 extends ObjectReferenceOnActivate(ObjectReference TriggerRef)Event OnTriggerEnter(ObjectReference akActionRef) Debug.sendAnimationEvent(game.getplayer(), "IdleLayDownEnter")EndEvent and can't compile ._. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted January 28, 2017 Share Posted January 28, 2017 Scriptname teste2 extends ObjectReference Event OnActivate(ObjectReference TriggerRef) Debug.sendAnimationEvent(game.getplayer(), "IdleLayDownEnter") EndEvent Can't guarantee that that will work as I've never scripted for this type of thing before. But it is what makes the most sense given what you tried to use. Link to comment Share on other sites More sharing options...
Neru2308 Posted January 28, 2017 Author Share Posted January 28, 2017 Yes it works, thank you soo much!but i need to jump to end animation, there is any way to make the event end by pressing a walking direction ? Link to comment Share on other sites More sharing options...
IsharaMeradin Posted January 28, 2017 Share Posted January 28, 2017 Add in a Wait statement for testing and try the following after. PlayIdle(IdleStop_Loose) If your character plays the animation for the specified time and then leaves and is movable without having to jump, you're part way to a solution. Should it work, you can then use SKSE and register for keys and listen to see if any of the movement keys are pressed, if one is used then run the above line and unregister for keys. Link to comment Share on other sites More sharing options...
Neru2308 Posted January 28, 2017 Author Share Posted January 28, 2017 PlayIdle(IdleStop_Loose) not work for me, soo i made this Scriptname aaaaLayDown extends ObjectReferenceEvent OnActivate(ObjectReference TriggerRef)Debug.sendAnimationEvent(game.getplayer(), "IdleLayDownEnter")Utility.wait(50.0)Debug.sendAnimationEvent(game.getplayer(), "IdleForceDefaultState")EndEvent and it workthank you again Link to comment Share on other sites More sharing options...
Recommended Posts