Anim light question. - by Lady Rowena
Lady Rowena on 2/7/2013 at 18:02
Is there any chance to have an anim light set to 'random but coherent' if it has to start turned off?
FireMage on 2/7/2013 at 18:21
Hum... yes I think it's possible...
Let me a minute to investigate about it. I'll be back...if someone didn't answer the question before ^^
FOUND:
Add your light, add your switch (a lever in my test map)
Link your switch to your light with a "Control Device" Link.
Go to your light properties:
=>Renderer>Animlight: Set to random but coherent. Set it as you wish to.
IMPORTANT: DON'T forget to tick "Inactive". Then,
=>S>Script: Animlight at the first line.
------------------------------------------------------------------
Go to your switch properties:
=>Tweq>JoinState: Set Anims to On,Reverse & Anims 1 to On,Reverse too.
And that work! ^^
LarryG on 2/7/2013 at 18:36
Does zero brightness go to random but coherent when turned on? I don't remember. If it is out of sight, you could always set it to random but coherent and send it a TurnOff at the first Sim message.
FireMage on 2/7/2013 at 21:12
The random but coherent is magic. You don't need to set any brightness to 0.
My minimum brightness was 100 & the maximum was 200. I just ticked inactive and it works.
In 1.19, it was impossible, yes, but with 1.21, now it is possible thanks to this box to tick!
With my method, you'll find it off => NO LIGHT EMITTED
And when you switch the lever on, the light will appear!! ^^
And when you switch the lever off, the light disappear!! And that, with a realistic effect! The light appear and disappear slowly. :cool:
I wish I could submit a video, alas, I have no software to record my screen which work with quality when thief is launched...
I know fraps, but it's not free and I don't have the necessary cash for it... if you know a free software that could record the screen when thief is launched with a decent quality, you'll get my eternal gratitude! :D
EDIT: The fact that you'll find the light off is due to the inactive box ticked and the switch's joints' states.
Setting all joints that will move if you frob it to On,reverse will turn the light off at the beginning!
Just try! ;)
You'll see, I'm right!
Lady Rowena on 2/7/2013 at 21:26
Sorry, I forgot to say that I'm using NewGasLight script to turn these lights on and off. They are lanterns or oil lamps. I have a bunch of those throughout the missions. It would be nice to set them to random but coherent, but honestly adding to everyone of them a switch would be very annoying. I thought that it was simpler. Thanks anyway. :)
BTW, I tried checking "Inactive", but it doesn't work, probably because a real switch is needed. :erg:
FireMage on 2/7/2013 at 22:34
Yes, the switch is needed.
But It seems that your situation is...more complex that I was thinking... My method is for a light source controlled by a switch...
You're talking about a source light that we can may turn off with water/gas arrows and turn on by a simple frobbing action, right?
Let's investigate that way...
EDIT: Try Larry's method first with the Sim message. Maybe it may work.
LarryG on 3/7/2013 at 01:46
I never thought of using that for all difficulties. What a twisted mind you have! :thumb:
Lady Rowena on 3/7/2013 at 11:16
It doesn't work. I tried everything. I set the tweq to on, reverse, then to on only. I even removed the script.
I tested it on two different lamps, I also typed the set and test difficulty manually, just in case the menu command wasn't working. No success. The lamps always start turned on. :(
FireMage on 3/7/2013 at 11:22
Hey, you're using gas lamp right?
So, if you create a M-Properties that emit Water Stim at the beginning and if you put it into all your gas lamp's properties, maybe it will work!
I'll try this... I'll be back...
EDIT: YES! IT WORK!
go to metaprops section.
Create your Metaprop where you want (rendeffect for example) and call it: "OneShotWater" for example.
Edit the properties: Act/React>Source:
Select WaterStim as Stimulis.
Select Radius as type of emitting
Set the intensity to 1
Edit Shape: Radius: 5.00 | Set flags to none
That's all.
Save your Gamesyst.
Go to all your lamp's properties and add the "OneShotWater" Metaprop.
You'll find your gas lamp OFF :D
You don't need any switches for this.
And when you turn your gaslamp on, the random but coherent is always the light effect! ;)