View Full Version : Object placement problem (can go through walls)
30th May 2009, 5:21 PM
I just noticed that all the multitile statues/sculptures I made can go through walls ! I use the "DO not use Maya footprint" line, so objects and sims intersection are not allowed. But I don't know how to fix this wall througing.
Can someone help me please ?
30th May 2009, 7:59 PM
Add call of
[global 0x010C] MT - Init - Wall Placement (no args)
to Init BHAVs of all tiles.
Make sure that thoser tiles have proper indices in OBJD - i.e. if you have tiles (0,-1) and (0,0), it will probably show up correct footprint tiles, but this function will consider these tiles as not adjacent, so wall between them will be allowed.
30th May 2009, 9:11 PM
Well I added this "[global 0x010C] MT - Init - Wall Placement (no args)" to the init BHAV but there is no change.
I just have 3 BHAVs: "init", "init common" and "main".
What do you want to mean by "proper indices in OBJD" ?
31st May 2009, 10:38 AM
First, make sure which Init is actually called - 'init' or 'init common' - look in OBJf for all tiles (except lead one, forgot to mention).
Second, did you connected the call to the rest of bhav properly? Do you have experience in bhav editing?
Third, about proper indices - as I tried to explain, they have to be continuous, and all greater than zero. If you have tiles with indices like (0,-1) (corresponds to '0x000B:Multi-Tile sub index' = 0xffff) or (-1,0) (... = 0xff00), they will have adjacent footprint (green squares), but you'll be able to draw wall between such tile and (0,0).
31st May 2009, 3:32 PM
In each OBJfs (I have 5 because 4 tiles), the Init function is combined with the action 0x1002: "init".
I think the call is linked correctly.
The object have 4 tiles, so the indices are (0,0), (0,1), (1,0) and (1,1). And the Multi-Tile sub index are 0, 1, 256 and 257. Of course, the leader have -1.
31st May 2009, 5:34 PM
Seems all right then, strange that it doesn't work :blink:
The only thought I have now - did you deleted and repurchased the object in game after its init is modified?
31st May 2009, 7:01 PM
It is not in the lot, I buy it every time I run the game to test it. :s
6th Jun 2009, 9:11 PM
Would you like take a look on my package please ??
vBulletin v3.0.14, Copyright ©2000-2013, Jelsoft Enterprises Ltd.