Legotrash Posted February 9, 2014 Share Posted February 9, 2014 I'm trying to use let locRot := NiAVObjectGetLocalRotation nifID blockID in a script but upon saving it gives me the error that locRot is an "unquoted argument". Can anyone help me with this?I've checked the obse log in case there's something going wrong with NifSE but it's loading correctly so there goes that. Link to comment Share on other sites More sharing options...
DrakeTheDragon Posted February 9, 2014 Share Posted February 9, 2014 (edited) Did you define the new variable "locRot" with its proper type before? Or is this line the first occurance of the term "locRot" in your script?In ObScript variables need to be defined before they can be used, by lines like "int iTemp" or "ref myRef" in the head of the script. Going by the nature of the return value I guess "locRot" would be of type "array_var", though I'm not entirely sure about that. Depends on the "NiAVObjectGetLocalRotation" function's definition. edit: Read up a little about it, and while the WiKi documentation is entirely bogus and their example also misses the compile-critical variable declarations, as well as using variable types in the syntax description which just don't exist to begin with, I'm rather convinced now the type required here would indeed be "array_var". Edited February 10, 2014 by DrakeTheDragon Link to comment Share on other sites More sharing options...
Legotrash Posted February 10, 2014 Author Share Posted February 10, 2014 (edited) That was it,thank you! It must be ok now because in NifSE's log it tells me it gets the rotation etc. Nothing happens so far though so I'm wondering if it's the axis' fault. I didn't define that at first either. I tried defining it as a string_var but nothing so I'll just try everything and see what happens. I should've mention that it was the example of the wiki that I used,my bad. That's what made me think that I shouldn't define locRot (no need to explain,you saw it yourself).I'll edit this post to let you know how it went. EDIT: I can only declare the axis as a string_var after all but my script won't work (I just tried rotating the foot as a test). I might might try to contact DragoonWraith but I'm not even sure if he's still working on NifSE. Edited February 11, 2014 by Legotrash Link to comment Share on other sites More sharing options...
gep5 Posted February 23, 2015 Share Posted February 23, 2015 That was it,thank you! It must be ok now because in NifSE's log it tells me it gets the rotation etc. Nothing happens so far though so I'm wondering if it's the axis' fault. I didn't define that at first either. I tried defining it as a string_var but nothing so I'll just try everything and see what happens. I should've mention that it was the example of the wiki that I used,my bad. That's what made me think that I shouldn't define locRot (no need to explain,you saw it yourself).I'll edit this post to let you know how it went. EDIT: I can only declare the axis as a string_var after all but my script won't work (I just tried rotating the foot as a test). I might might try to contact DragoonWraith but I'm not even sure if he's still working on NifSE.New Nifse thread here http://forums.bethsoft.com/topic/1513902-relzbeta-nifse-12-b1-astonishing-as-that-is/page-2 Link to comment Share on other sites More sharing options...
Legotrash Posted March 5, 2015 Author Share Posted March 5, 2015 Thanks for the reply! I don't think I have an account there (hard to keep tabs on all of them xP) but if not,I will create one. I stopped working on that specific mod since I couldn't make things work the way I wanted (if I remember correctly I was trying to animate the camera). I'll warm up first by picking up my latest WIP (which I really wanna finish) and then I'll revisit this one. Link to comment Share on other sites More sharing options...
Recommended Posts