Page 1 of 1

Is the wall lever activable zone/location hardcoded ?

Posted: Sat Dec 01, 2012 12:38 am
by LordYig
I have played a bit with buttons and levers animation and I have witnessed a strange behavior with levers.

While moving (translating) buttons with the GMT does the job of putting a working button anywhere you want on a wall, you cannot do the same with a lever.
You can add a working (somewhat) lever placed on the right side of a wall (for example), but the activation zone where you can click is always in the middle of the wall...
That's gives you a working lever with animation on the right side of a wall (for example again) but you can only activate it by clicking on the middle part of the wall where... well... there is nothing...
That's quite frustrating...

You can make a unique wall with several buttons, all actionable and working, I have managed to add 6 on the same wall so far but with correct placement more is feasible imho...
But you cannot do the same with levers... :?

I am guessing that the hidden/difficult to see secret buttons forced the buttons handling system of the game engine to be more flexible and available from nearly anywhere while the lever only needed a more simple handling system...

Am I guessing correctly ?
Have I missed something ?
Is that a possible change / update, new feature that could be added in the future ?

Re: Is the wall lever activable zone/location hardcoded ?

Posted: Sat Dec 01, 2012 10:04 am
by petri
This should be easy to fix. I'll try to remember this for the next beer coding event but as there are about a hundred things in my todo list (practically all the time it seems!) somebody better remind me when the time comes :)

Re: Is the wall lever activable zone/location hardcoded ?

Posted: Sat Dec 01, 2012 2:33 pm
by LordYig
petri wrote:This should be easy to fix. I'll try to remember this for the next beer coding event but as there are about a hundred things in my todo list (practically all the time it seems!) somebody better remind me when the time comes :)
If I'm available when the time comes, I'll try to remind you. Thanks Petri

Re: Is the wall lever activable zone/location hardcoded ?

Posted: Sat Dec 01, 2012 8:23 pm
by montagneyaya
You can use an invisible button at the same place that the lever connecting to a script

function LeverToggle()
lever_1:toggle()
end

Re: Is the wall lever activable zone/location hardcoded ?

Posted: Sat Dec 01, 2012 11:08 pm
by LordYig
montagneyaya wrote:You can use an invisible button at the same place that the lever connecting to a script
function LeverToggle()
lever_1:toggle()
end
Thanks for the tip :)

But the whole point was to have 3 or more levers on the same wall.
All being properly actionable and animated?

You can do it with buttons but currently you can't with the levers.

Re: Is the wall lever activable zone/location hardcoded ?

Posted: Sat Dec 01, 2012 11:48 pm
by montagneyaya
If you put multiple lever on the same wall and click in the middle only the first lever is used.

You can create an invisible lever not connected like first lever for have not click zone in the middle (or if you are a lever in the middle it must be the first).
And use my trick for other lever, I think it work (not tested).

Re: Is the wall lever activable zone/location hardcoded ?

Posted: Sun Dec 02, 2012 2:20 am
by LordYig
montagneyaya wrote:If you put multiple lever on the same wall and click in the middle only the first lever is used.
That was exactly my point.
Not clearly explained as you have though...
montagneyaya wrote:You can create an invisible lever not connected like first lever for have not click zone in the middle (or if you are a lever in the middle it must be the first).
And use my trick for other lever, I think it work (not tested).
I'll give it a try as a workaround. If this works that'll do the job.
But I would have preferred a full support from the engine itself.
It's possible for buttons so it should be possible for levers as well.
I hope the devs will find some time to add support for this, in the meantime I'll try you solution.

Thanks montagneyaya.

Re: Is the wall lever activable zone/location hardcoded ?

Posted: Sun Dec 02, 2012 10:29 am
by montagneyaya
LordYig wrote: But I would have preferred a full support from the engine itself.
It's possible for buttons so it should be possible for levers as well.

I totally agree with you.