Magic voici le script que j'ai pour les lampes pour une animation par toucher de l'objet :
// Lamp that turns on and off
vector Color = <1, 1, 1>;
float Falloff = 2.0;
float Intensity = 20.0;
float Radius = 2.0;
default
{
state_entry()
{
llSetPrimitiveParams([PRIM_POINT_LIGHT, FALSE, Color, Intensity, Radius, Falloff]);
}
touch_start(integer total_number)
{
state on;
}
} // End of default
state on
{
state_entry()
{
llSetPrimitiveParams([PRIM_POINT_LIGHT, TRUE, Color, Intensity, Radius, Falloff]);
}
touch_start(integer total_number)
{
state default;
}
} // End of on
|