|Search this Thread|
|13th Dec 2011, 07:54 PM||Test for height-wise position of an object; also, 0x006E Look at #1|
Join Date: Apr 2008
I have two questions:
1. In an interaction, I'd like to find out the position of the object my sim is interacting with, in terms of height.
If I could find out whether the object is on the floor/ground, on an endtable, coffee table, table/counter or other, it would the sufficient.
Could I make a test for the category of the object container object, or somesuch? Do these types of surface objects have separate categories, and if they do, how do I find the numbers?
OK, it seems that posting the problem to MTS works wonders to one's brain. I have figured this out.
I'd like my sim to look at the object it is interacting with, but 0x006E Look at (Target: Stack Object ID 0x0000, default 3/4 height) is giving me an Undefined transition error. (So does 'custom look at')
My object is using PaintingGlobals just like the deco object I got these BHAVs from, but obviously something more is needed.
The problematic nodes are nodes 3 and 4 in BHAV 0x0000101A.
The Init for the AL wall shelves does not set a category. Even if it did, how would I find out how high the shelf is at the moment of testing?
|15th Dec 2011, 10:38 AM||#2|
Any chance you could attach a copy of the you're getting?
As for finding out where something is in game, one option would be to look at the object which currently contains the Stack Object (ie, "Stack Object Id := Stack Object's container id") and check its category.