Power off/on an object?
I'm trying to figure out how turn certain objects off but there's some strangeness going on, even when I try it in a simple test scene.
I stamped a cube and I hooked it to a switch. When I press the switch, it toggles and works fine. So I think "Cool, I'll try hooking this to a trigger zone" so when the player walks inside it will turn off the cube, since the cube starts on. I hook the trigger to the switch and the cube immediately turns off. I run the game and entering the trigger turns the cube on.
So it works, but it's assuming I want to turn on the cube instead of off. I've noticed this happens on most (all?) things when I try to access it's power.
How do I stop this from happening? And in addition, can I just send an "off" signal? Even if something is already off?
Thanks!
-
Hi,
When you plug in a wire into the power you are overriding it,
So in this case when out of the trigger zone the thing is off, then turns on when you enter.
To get it to work the other way around put a "Not gate" between the trigger zone and power input to reverse the polarity,
Or hooking the triggerzone up to a keyframe, and the keyframe has been recorded turning the power on or off depending on what you want.
This keyframe can be set to perminant so you just send 1 signal to it and the power will turn on/off forever or until another keyframe changes it.
John -
Oooh ok, I think I get the keyframe idea.
The not gate seems simple enough, I'll give it a shot. I was hoping to use this solution in a more complex example so I'll try the keyframe thing there.
Thank you John!
댓글을 남기려면 로그인하세요.