Guest SexualAardvark Posted April 11, 2014 Posted April 11, 2014 I'm having two problems here with a script that should theoretically work: - When I use the keybind, it takes forever for the game to notice it (if it does at all), and this is only an issue with this mod. Other mods that work on keybinds whose code I am emulating react much quicker. This is true even when I replace the entirety of the if and else blocks to do with a ShowMessage for debugging. - I'm altering a mod which didn't seem to actually pack a kneeling animation in there that it's supposed to have. (msex Veronica.) If it's in there, I can't find it; I don't have much experience with animations and I'm more tuned to Skyrim modding than FONV, so this is possible. Instead, I took the kneeling restrained animation from the ZAZ Animations part of SCR, put it in the idle animation window under a new name. However, I get this weird, messed up, half-twisted body that's on its side. And yes, Sexout works for me normally. I'm including samples of my code and an upload of my tweaked ESP. Thanks for the assist in advance. This is the keybind trigger. begin gamemode ; allow kneeling, if the gods smile if(iskeypressed 49 != toggle) set toggle to iskeypressed 49 if(toggle) showmessage msexDebugKeydown ;key just pressed - do nothing else showmessage msexDebugKeyUp playerref.cios msexCinderKneelToggle endif else ; N released, do nothing but here's how to check endif ; if bIsNpressed != IsKeyPressed 49 ; N ; showmessage Debug3 ; set bIsNpressed to IsKeyPressed 49 ; N ; if bIsNpressed ; ; N is currently down ; showmessage Debug0 ; playerref.cios msexCinderKneelToggle ; else ; ; N released, do nothing but here's how to check ; endif ; endif end This is the script the MGEF calls: scn msexCinderKneelScript short kneeling begin ScriptEffectStart if kneeling showmessage Debug2 playerref.PlayIdle SexoutNGReset enableplayercontrols set kneeling to 0 else showmessage Debug1 DisablePlayerControls 1 1 1 1 1 1 1 playerref.PlayIdle CinderKneel set kneeling to 1 endif end Begin ScriptEffectUpdate ; If we make it here, we are finished. Dispel ourself RemoveMe End There's an ESM by the same author you'll have to download in order to get this one to work properly: http://www.loverslab.com/topic/13802-msex-veronica-ds/ You don't have to download the .7z or ESP; the ESP is obv. what I'm working on, and the .7z only contains a sound file.
Guest Posted April 11, 2014 Posted April 11, 2014 in my opinion, the only reason that could increase the keybing thing is the quest Delay time. and about the animation, it's strange. If that animation works well in that mod, it must work in yours too. so or it's a bad animation file (i.e. it was put in these folders but it was unused, they used another file), or it's a matter of skeleton, which I don't think so since you are running everything fine. I personally can't think to anything else :-O
Guest SexualAardvark Posted April 11, 2014 Posted April 11, 2014 Quest delay time? Is that something specific, or do you just mean this specific quest is running really slow? It's very possible that it's a bad animation file since I've never actually seen it used, but it's just as possible that I don't know what I'm doing; my animation cancel command doesn't seem to work either, but it might be the keybinds being slow again. No one but me has complained about the kneeling not working in Mavia's mod. XP I'd test with a different anim, but I spent most of my day on this and I'm moving to other sections of the mod for polishing.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.