dagobaking Posted December 17, 2017 Share Posted December 17, 2017 (edited) I am trying to use Papyrus to snap the player character into a furniture interaction. t works fine on NPC Actors. But, when I run "playerRef.SnapIntoInteraction(customFurniture)" it temporarily fades the camera to black. Then when it fades back in, the player is in the right place, but the camera controls are frozen. Does anyone know a way to do the snapintointeraction on the player and maintain camera controls? Edited December 17, 2017 by dagobaking Link to comment Share on other sites More sharing options...
Genamine Posted December 17, 2017 Share Posted December 17, 2017 You could look into this Beyond that, I cant really give you anything specific, Ive never tried or seen what youre looking to do Link to comment Share on other sites More sharing options...
ThoraldGM Posted December 17, 2017 Share Posted December 17, 2017 Interesting. Maybe mine works because I called Game.ForceFirstPerson() on lines 237 and 293. Also see lines 204, 586, 625: https://pastebin.com/XJTvj7mG Link to comment Share on other sites More sharing options...
ThoraldGM Posted December 17, 2017 Share Posted December 17, 2017 Looks like players could get stuck on benches if they turn off teleport spincam in my mod. In addition to relocating force first person code, I'm also going to try Game.SetPlayerAIDriven(false) just to see if that's a good backup or not. Link to comment Share on other sites More sharing options...
dagobaking Posted December 17, 2017 Author Share Posted December 17, 2017 You could look into this Beyond that, I cant really give you anything specific, Ive never tried or seen what youre looking to do Thank you for taking a look. I tried using that to "unfreeze". But, it didn't work. It turned out to be something else (see below). Interesting. Maybe mine works because I called Game.ForceFirstPerson() on lines 237 and 293. Also see lines 204, 586, 625: https://pastebin.com/XJTvj7mG Thank you. That is a helpful reference script for this type of thing. It turns out that I was misunderstanding the cause of the problem. I was setting the player character to "Unconscious". That was (logically) disabling camera controls. So, I was able to get it all working properly once I removed that call. Looks like players could get stuck on benches if they turn off teleport spincam in my mod. In addition to relocating force first person code, I'm also going to try Game.SetPlayerAIDriven(false) just to see if that's a good backup or not. Interesting. I'm having a similar issue with characters sometimes getting stuck in furniture. It's rare enough that I'm going to move on to other things for now. But, I would be interested to hear any solution you come up with as I might need it also. I see you make use of changing the ini settings for the spin effect. I've picked up a few of those ini commands from looking at other mods. But, it would be great to have a reference that explains all the settings available. Does such a reference exist? The wiki site has a page for INI settings. But, it doesn't seem to cover them all. Link to comment Share on other sites More sharing options...
ThoraldGM Posted December 17, 2017 Share Posted December 17, 2017 Unfortunately, I haven't seen a list yet. I learned about the ini setting from steve40: https://forums.nexusmods.com/index.php?/topic/6114033-start-the-spinning-idle-camera/ I will try the furniture codes in a couple of days when I'm off work. If all else fails, my ugly failsafe would be to start a timer on snap, then teleport out of furniture if player hasn't moved in (60?) seconds. But the force first works after spincam, so it "should" work after furniture. Link to comment Share on other sites More sharing options...
ThoraldGM Posted December 20, 2017 Share Posted December 20, 2017 Update: I've had no further "getting stuck" issues since forcing first person after snapping into furniture. Link to comment Share on other sites More sharing options...
dagobaking Posted December 20, 2017 Author Share Posted December 20, 2017 Thank you. Good to know. Link to comment Share on other sites More sharing options...
Recommended Posts