Page 1 of 2
Problem with spawning alcove where a wall was
Posted: Tue Jan 22, 2013 10:20 pm
by Dragomir
Ok im using a script to spawn an entire room. But when i spawn an alcove lets say on a normal plain wall .. well my alcove is there but the wall is there too and its like the alcove wall does not replace the normal wall so they are both together its weird. How can i do that ?

Re: Problem with spawning alcove where a wall was
Posted: Wed Jan 23, 2013 12:01 am
by BuzzJ
My way of doing alcoves is quick and dirty: I have a wall that is a normal wall with a square cut out and holed. That object is set to replace wall. A separate object not set to replace wall is dropped on top.
Re: Problem with spawning alcove where a wall was
Posted: Wed Jan 23, 2013 12:10 am
by Dragomir
Id like to find a solution without changing any texture or model. And this is not only for alcoves but for anything you put on a wall spawning them (statue - alcoves etc..)
Re: Problem with spawning alcove where a wall was
Posted: Wed Jan 23, 2013 12:15 am
by Komag
You can have a secret door there first, then destroy it and spawn the alcove
Re: Problem with spawning alcove where a wall was
Posted: Wed Jan 23, 2013 12:16 am
by Dragomir
To put a secret door there dont i need another empty square behind ? And i really dont get why it does that .. an alcove is suppose to be replacing the wall no ? replaceWall = true
I might not have a choice to put a secret door + another space behind the alcove but its not good because i dont have enough place to put one square behind

Re: Problem with spawning alcove where a wall was
Posted: Wed Jan 23, 2013 12:19 am
by Komag
just put the secret door elsewhere then move it into place with WASD
Re: Problem with spawning alcove where a wall was
Posted: Wed Jan 23, 2013 12:20 am
by Dragomir
Will try that

Thx
I will post again to tell you guys if it works

Re: Problem with spawning alcove where a wall was
Posted: Wed Jan 23, 2013 12:25 am
by Dragomir
It seem it still doesnt work. I put a secret door on the wall at the limit of the map. Even if i destroy the secret door and spawn an alcove there its still like there is the normal wall + the alcove. Very weird. Is it possible that you cannot replace the wall when your at the limit of the map ? like the wall right beside the black border ? Seriously if someone have a solution for this let me know ;P i cant seem to find a solution to this unless i use a secret door with a space behind but when i use that i can walk right through the alcove.
Re: Problem with spawning alcove where a wall was
Posted: Wed Jan 23, 2013 12:58 am
by Dragomir
I tested with a space behind the secret door and when i destroy the door i spawn an invisible wall so that i cannot walk into the space behind the alcove. Its the only way i can see that fix the problem. :/
Re: Problem with spawning alcove where a wall was
Posted: Wed Jan 23, 2013 1:18 am
by Komag
Ah, I remember better, you'll need to define a new secret door, one that replaces the wall, then it will work.
replacesWall = true,
Or just define a new wall decoration thing that uses the same model as the wall but replacesWall. Either way, if you delete it there will be a blank black hole there, perfect for sticking in an alcove