Scripting Question: Getting the model height?

Post » Mon Nov 28, 2011 6:07 pm

Okay, so I've got this great mod for Oblivion that I'm using (Automatic Book Placement), auto stacks books on bookshelves for me. Awesome, right? Well, it is. It sorts them by series number and alphabetically too. Which is great. However, I want to modify it to sort by Height, THEN series, THEN series number. Looking at the script the syntax seems a bit strange, but I have the hang of it. What I'm wondering, is OBSE has a function called compareNames, but is there a way to compare the height of the model? I found a command that gets the BoundingBox, but I don't think that's what I'm after. Any help guys?

Thanks in advance
- Gareth
User avatar
Dan Endacott
 
Posts: 3419
Joined: Fri Jul 06, 2007 9:12 am

Post » Tue Nov 29, 2011 2:52 am

Take a look at this http://obse.silverlock.org/obse_command_doc.html#GetBoundingRadius
User avatar
Eric Hayes
 
Posts: 3392
Joined: Mon Oct 29, 2007 1:57 am

Post » Mon Nov 28, 2011 4:18 pm

Take a look at this http://obse.silverlock.org/obse_command_doc.html#GetBoundingRadius


Thanks, but I was specifically after the exact height of the model. Seems that's not possible. Luckily I found that the mod I was editing had already hardcoded if statements to get the height based on the model id or something. So now the mod sorts by height and it looks beautiful ^-^

On a side not, the wiki is wrong, it says that to store a user function return value, you do something like

Let someVar := Multiply 5 10


But I kept getting invalid opperands on the :=, and it took me an hour to figure out that I actually needed

Let someVar := Call Multiply 5 10


May seem very insignificant, but took me a long time to figure out, as there's not too much information on this
User avatar
Jade Barnes-Mackey
 
Posts: 3418
Joined: Thu Jul 13, 2006 7:29 am


Return to IV - Oblivion