W0lfwang Posted June 8, 2016 Share Posted June 8, 2016 Hello guys and good afternoon, I am trying for the first time to create a script, very simple, an object that helps me go to wait, I use a controller and the Xpadded so with mods like project Nevada, superhot, the nvse flashlight, the controller gets a little crowded, so I don’t have a button for the wait action, so my item does exactly that, it already works with project Lazarus and his item wheel, it simply emulates the button and the action is fired, but I want this item to work from the pip-boy. It emulates the pip-boy button and after a few seconds it emulates the wait button, it should work, but it doesn’t, I don’t know what I did wrong, here is the script scn WaitExtrafloat timerbegin ScriptEffectStart if timer < 5 player.AddItem WaitItem 1 1 TapControl 14 set timer to timer + GetSecondsPassed else TapControl 15 set timer to 0 endifend 14 is the pip-boy and 15 the wait key, the function is from the NVSE, it compiles correctly, but it does not work, can anybody tell me what am i doing wrong? and sorry for the bad english. Link to comment Share on other sites More sharing options...
uhmattbravo Posted June 8, 2016 Share Posted June 8, 2016 Does something add the script effect? Or is it just when you hold the button that it's supposed to emulate pressing the wait button. If it's the latter, I'd try using a gamemode block instead of the scripteffect block. Link to comment Share on other sites More sharing options...
W0lfwang Posted June 8, 2016 Author Share Posted June 8, 2016 (edited) Does something add the script effect? Or is it just when you hold the button that it's supposed to emulate pressing the wait button. If it's the latter, I'd try using a gamemode block instead of the scripteffect block.Thanks for replying! I explain further, the mod creates an item, an indigestible item flagged as food, so whet the item is consumed, it fires the script, the script haves the function to reestablish said item and to fire the key, but I need it to wait a few seconds so the pip-boy animation finish and then the key should be press, that is what I am trying to do. I may not be explaining property I will leave my file, so you may check it and may be it will explain itself, I have three scripts, WaitItemScript, SwapObjectScript and WaitExtra, the first two already work whit project Lazarus, but the third tries to work from the pip-boy, there is the problem. Sorry if I cannot explain correctly, English is not my first language and I’m trying hard to make myself clear, thanks for everything! Edited June 8, 2016 by W0lfwang Link to comment Share on other sites More sharing options...
Recommended Posts