Lord Valarian Posted July 17, 2012 Share Posted July 17, 2012 I'v can't get the formatting of these type of OBSE functions to work. There are no examples I can find on the internet. I just need a one line example. I keep getting syntax error. I have all the arrays defined and set up correctly. Need help. Link to comment Share on other sites More sharing options...
QQuix Posted July 17, 2012 Share Posted July 17, 2012 When everything else fails, check the WIKI: Introduction to OBSE arrays Link to comment Share on other sites More sharing options...
Lord Valarian Posted July 18, 2012 Author Share Posted July 18, 2012 I already have the arrays setup with the correct values, same length for each one. This page has no examples. CS extended(5.1) says invalid command. ?? http://cs.elderscrolls.com/index.php/MatrixSubtract temp1 MatrixSubtract temp2 temp3 ;all arraysLet temp1 MatrixSubtract temp2 temp3 ;all arrays Both syntax errors. Link to comment Share on other sites More sharing options...
WarRatsG Posted July 18, 2012 Share Posted July 18, 2012 So you want the array "temp1" to equal temp2 minusminus temp3 Let temp1 := MatrixSubtract temp2 temp3 Your second attempt was nearly right, but you forgot the :=, which just means assign. Kind of like the word "to" in any Set command. Link to comment Share on other sites More sharing options...
Lord Valarian Posted July 18, 2012 Author Share Posted July 18, 2012 It worked. Now, I need to get this to work. It gives invalid expression. array_var Temp1[2] let Temp1 := MatrixScale Temp1 100 Link to comment Share on other sites More sharing options...
QQuix Posted July 18, 2012 Share Posted July 18, 2012 (edited) I played around with this and found out that either the OBSE documentation or implementation is wrong. The argumenta are switched. The correct sintax is (scaledMatrix:array) MatrixScale scalar:float matrix:array I wll add a note to the WIKI and post the mistake in the OBSE thread. [EDIT] . . . and your declaration should be just: array_var Temp1 Edited July 18, 2012 by QQuix Link to comment Share on other sites More sharing options...
Lord Valarian Posted July 20, 2012 Author Share Posted July 20, 2012 I played around with this and found out that either the OBSE documentation or implementation is wrong. The arguments are switched. The correct syntax is (scaledMatrix:array) MatrixScale scalar:float matrix:array I wll add a note to the WIKI and post the mistake in the OBSE thread. [EDIT] . . . and your declaration should be just: array_var Temp1 OK, that did it. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts