Page 1 of 1

Pull chain as a button (ran into problem)

Posted: Tue Sep 25, 2012 11:46 pm
by Neikun
So I noticed pullchains function like buttons, so I thought, "Why not have a pullchain that's not attached to a door?"
I did this quite simply in the following script by cloning a wall button.

Code: Select all

cloneObject{
	name = "pull_button",
	baseObject = "wall_button",
	model = "assets/models/env/door_pullchain.fbx",
	pressAnim = "assets/animations/env/door_pullchain.fbx",
}
It shows up perfectly. No problem, but it's untoggle able.
The editor displays the error: warning! Can't find button node for wall button.
I presume that this is because the wall button and pull chain are not in the same place.
Is there a way around this, or am I thinking too far outside the box?

Re: Pull chain as a button (ran into problem)

Posted: Wed Sep 26, 2012 3:22 am
by Neikun
Anyone got some feed back on this?

Re: Pull chain as a button (ran into problem)

Posted: Wed Sep 26, 2012 6:37 am
by petri
The engine looks for a node called "button" in the model so that it knows where the button is located. You'd have to create a modified version of the model with the node in it.

Re: Pull chain as a button (ran into problem)

Posted: Wed Sep 26, 2012 12:21 pm
by Neikun
That's what I thought.
Maybe I'll give John's model program a look.
Thanks, Petri!