Page 1 of 1

Spawning alcoves and ceiling shafts

Posted: Sun Jun 02, 2013 4:38 pm
by manic.insomnia
Hi all just working through my first mod.

Having an issue spawning alcoves and ceiling shafts.

If I use this script anywhere in my levels I get the alcove overlaying the wall or ceiling element obscuring it. It works as an alcove but it's hidden by what was already in the same spot.

Code: Select all

spawn("prison_ceiling_lamp", 4,12,20,2)
spawn("dungeon_ceiling_shaft", 4,12,20,2)
spawn("dungeon_alcove", 4,12,20,3)
Is there a straight forward way to script alcoves or shafts that replace the walls. This function is mentioned as being added the scripting by default but seems not to have been implemented yet.

Thanks
MI.

Re: Spawning alcoves and ceiling shafts

Posted: Sun Jun 02, 2013 5:05 pm
by Sutekh
Well, I know that you can replace a secret button with an alcove by destroying the secret button in the same script that spawns the alcove, so it should just be a case of defining a wall decoration using the wall model itself and setting its replacesWall flag to true. Once you have this 'dummy' wall defined and placed in the editor, you should be able to destroy it and spawn an alcove in its place.

Re: Spawning alcoves and ceiling shafts

Posted: Sun Jun 02, 2013 5:27 pm
by manic.insomnia
Thanks Sutekh I'll give that a go.

Shame the replacesWall default for the alcove isn't implemented yet, everything I've found seems to involve hacks rather than straight forward modding.

Re: Spawning alcoves and ceiling shafts

Posted: Thu Jun 20, 2013 3:02 pm
by manic.insomnia
Still no luck with scripting an alcove but I think maybe it's not a critical factor so I'm just going with a standard fixed alcove and script the items instead.