Search the Community
Showing results for tags 'while'.
-
Assuming an array I've already cast "Workshops" as a WorkshopScript, that does seem to populate with a list of workshops, I'm trying to run a check on each one as follows: int shopid = 0 while (shopid < Workshops.length) debug.traceandbox("Checking " + Workshops[shopid]) if somecondition somefunction(Workshops[shopid]) endif shopid += 1 Utility.Wait(0.5) endWhileBut it's not working, and the debug message shows "Checking [workshopscript" and the rest of the script doesn't get the ID of the workshop. It seems to follow the format of the examples in the wiki. What am I doing wrong? Edit: actually I think I may be looking at a race condition and the weird debug message is a red herring, as far as functionality. Meanwhile if anyone knows why I'm getting [workshopscript instead of the actual ref ID like I was expecting, I'd love to hear it. Edited edit: while I'd still like to know how to properly get the refID of a settlement into a debug message, you know what really helps in building an array? DECLARING THE ^&@?!!iING ARRAY oh well. For anyone having workshop troubles, or the morbidly curious: the "somefunction" above was taking a subset of Workshops and cramming it into its own dynamic array. Except, while I had defined the array in the Group section at the top of the script, I at no point actually declared it. Papyrus happily compiled my script despite it containing instructions to shove elements into an array that consisted of a black hole.
-
- workshopscript
- array
-
(and 1 more)
Tagged with:
-
Hey, I can't fire or swing any weapon while moving forward with a W key. I can with the Q,A,S, and D key though. It's weird. The only mods that I'd imagine would have anything to do with this are: And Ironsights mod, and A sprinting mod.
-
I am working on a mod, but now I want to have a scene with magic effects. Basically my scene works like this: Three people are doing a ritual and then a beam of light appears around the three people. As soon as the ritual is done the beam of light dissapears again. I know it might be really easy, but I haven't made a lot of scenes yet using this function. So if there is anyone that knows how it works, then I would really appreciate your help!
-
Nevermind, I figured it out. I had to change an int to a float. How do I delete this thread?
-
I am having major ctd problems while outdoors i'ts even happenig in completely new games I don't know why. here is my load order:
