Page 1 of 1

[SOLVED] Invisible barrier?

Posted: Mon Jan 14, 2013 6:42 pm
by vidarfreyr
Is it possible to make an invisible barrier, that hinders player movement temporarily?

Re: Invisible barrier?

Posted: Mon Jan 14, 2013 9:48 pm
by Balthasar
Yep. Open up a door model in the GMT. Delete the gate node. Add a new empty node called 'gate'. Save-As.

Then cloneObject the original door, using the empty model as its model and doorFrameModel.

The door will be invisible, but it will still block the party and monsters, and prevent attacks from passing through it.

Fun fact: You can still shoot fireballs through invisible doors built like this!

Re: Invisible barrier?

Posted: Mon Jan 14, 2013 11:18 pm
by vidarfreyr
Thanks! Will try that. Strange that it should only allow fireballs through, any ideas why that might be?

Re: [SOLVED] Invisible barrier?

Posted: Tue Jan 15, 2013 12:17 am
by Balthasar
Perhaps the game code actually checks for closed doors to block movement and attacks, while the code governing spells actually looks to see if they collide with a physical object.

Re: Invisible barrier?

Posted: Tue Jan 15, 2013 2:53 am
by BuzzJ
Balthasar wrote:Yep. Open up a door model in the GMT. Delete the gate node. Add a new empty node called 'gate'. Save-As.

Then cloneObject the original door, using the empty model as its model and doorFrameModel.

The door will be invisible, but it will still block the party and monsters, and prevent attacks from passing through it.

Fun fact: You can still shoot fireballs through invisible doors built like this!
I tried to do this with a pillar, it didn't work and crashed the dungeon editor. Do you happen to have a solution for how I can eliminate the generation of pillars in the Wall_set?

note: My walls don't make perfect corners, so I want to only place pillars when I choose to do so manually.

Re: [SOLVED] Invisible barrier?

Posted: Tue Jan 15, 2013 9:02 pm
by Balthasar
Maybe it is the empty gate node? You only need it for doors.