RandomPrimParam

De DigiWiki.

Version du 21 juin 2012 à 18:49 par Djphil (discuter | contributions)
(diff) ← Version précédente | Voir la version courante (diff) | Version suivante → (diff)

Simple script to show how to set random primitive parameters.

default {
    state_entry() {
        llSetTimerEvent(0.2); // How fast repeat event
    }
    timer() {
        vector color = <llFrand(1.0), llFrand(1.0), llFrand(1.0)>;//<r,g,b>
        // You can use any PrimParams here like for example PRIM_GLOW
        llSetLinkPrimitiveParamsFast(LINK_SET, [PRIM_COLOR, ALL_SIDES, color, 1.0]);
    }
}
Outils personnels
donate
Google Ads