Flux on 23/4/2008 at 12:31
I'm trying to increase the light of a radius every time player frobs an object.
I didn't get anything out of the script action "Alter property by float with a min value of..."
If I use script action "set property to value", it changes the radius but this occurs only one time. I want the light's radius start small then gradually increase upto one max value. I didn't understand anything from the alter property scripts pop up text:
"Will increment the property of on all objects at the end of link flavor by the first float, upto a max of the min plus the second float." What does this mean really, I tried almost every possible numeric combination, with no effect?
Judith on 23/4/2008 at 14:04
If it doesn't work you might need to create a "domino efffect", e.g. 3 or more scripts in this light with some flags: radius2, radius3, radius4, etc.
In the switch or sth:
1.
a) When I'm frobbed by the player,
b) set property light radius on linked objects (e.g. light at the end of the triggerscript).
c) set flag radius2 to true
In the light:
2.
a) When flag radius2 is set to true,
b) Set property light radius on myself to...
c) Set flag radius3 to true
3.
a) When flag radius3 is set to true,
b) Set property light radius on myself to...
c) Set flag radius4 to true
And so on, depending on how many changes you need. Question is, whether this transition will be subltle or rapid...
GlasWolf on 23/4/2008 at 18:37
Quote Posted by Flux
"Will increment the property of on all objects at the end of link flavor by the first float, upto a max of the min plus the second float." What does this mean really, I tried almost every possible numeric combination, with no effect?
The action is
Alter [Property] by [Float] with a min value of [Value] and add [Float] to min value to obtain max value on linked objects of [LinkFlavor].
So of you wanted to change a property from 4 to 10 in increments of 2 (i.e. 4 -> 6 -> 8 -> 10) then I think you'd need:
Alter [Property] by [2] with a min value of [4] and add [6] to min value to obtain max value on linked objects of [LinkFlavor]So the lowest value would be 4, the highest value would be 4+6=10 and the increment would be 2. The only question in my mind about that would be whether the first trigger would set the property to 4 or 4+2.
Flux on 23/4/2008 at 22:30
Thanks.
GlasWolf, your explanation sounds very plausible to me as well however it didn't do the trick. I tried altering the property of something else, no luck.
I guess I'll follow what Judith says, the domino effect.