~~ Welcome to the Pantera Polnocy's Gadgets store ~~
This item is a simple example of using functions llFrand and llSetLinkPrimitiveParamsFast to show how simple it may be to create a... cube. Which will adopt color values, light radius and intensity, glow level and alpha value at totally random rates! Quite nice looking, too.
Script and cube mod and copy. Happy learning.
Version 1.0b: Changed llSetTimerEvent from 0.5 to 0.1 to show llSetLinkPrimitiveParamsFast speed advantage over llSetPrimitiveParams and other separate functions (llSetColor, llSetAlpha etc.) more visibly.
Like it? Leave a review! ^^
---
Tip: You want to have more cubes blinking like this one - at once - and still work with only one script, saving region resources? Link them together and change:
llSetLinkPrimitiveParamsFast(LINK_THIS, [
to:
llSetLinkPrimitiveParamsFast(LINK_SET, [
- Color, glow, light, alpha. All random.
- Cube - six walls in total!
- Faster scripts = less lag = more love from other people
Nice!
Thank you for the gift :)