Ricebug on 6/11/2013 at 20:14
I guess I've installed a thousand lights in missions, many with switches. Anyways...
A VicLightSwitch controlling two lamps. JointsState have Joints 1&2 set to Reverse. All other flags are off.
The lamps are on, initially. AnimLight set at max brightness. Light set to '0'.
Here's what happens:
[INDENT]1st frob: Lower button goes in, upper button stays recessed. Lights stay on.
2nd frob: Lower button comes back out, upper button stays recessed. Lights go out.
3rd frob: Lower button goes in, upper button comes out. Lights come on.
4th and all subsequent frobs: the switch flips the lights on and off normally.[/INDENT]
So, which tweq did I mess up?
Xorak on 6/11/2013 at 23:48
When starting an animlight at maximum brightness, I like to run the lightswitch through an inverter, and touch nothing else. The inverter can do the reversing rather than having any tweqs messing things up.
The jointsState of the lightswitch is completely set to none
The jointsState of the lights are set to: On, none, On, On, none, none, none, none. That's the default setup for the animated lights.
I'm not sure if it really matters, but if I have the animlight light property, I delete the light property completely.
R Soul on 7/11/2013 at 00:04
JointState: AnimS: On, Joint1AnimS: On, Joint2AnimS: On (no reverse flags)
Shape > Joint Positions: 0 for all of them (note the default for the first two is -0.09).
LarryG on 7/11/2013 at 03:03
Quote Posted by Xorak
I'm not sure if it really matters, but if I have the
animlight light property, I delete the
light property completely.
I believe the Light property is there to put a little light on for the AIs when the Animlight is off. I think it has to do with them alerting ... but I don't remember. In any event, I think it is there for a reason.
Yandros on 7/11/2013 at 04:30
Well, if you delete the Light property and then clone the object, it will come back and you have to delete it again. What you may be thinking of, Larry, is giving it a Light property with very small radius and brightness so that AI will be able to notice the light is turned off if it has been given suspicious properties. Without it, they won't notice it if it's in complete darkness.
LarryG on 7/11/2013 at 08:31
That's what I was trying to remember. Thanks.