Jump to content

Obse Matrix Add example


Recommended Posts

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

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 by QQuix
Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...