


integer on = FALSE;
touch_start(integer t){
if(on) llParticleSystem([]);
else llParticleSystem([parametri]);
on = !on; //inverte il valore true/false di 'on'
}[8:00] Zoey Linden: thank you very much for your honesty : ) it really touches me to find people that are honest and good hearted to come up with these things too : )
[8:02] Zoey Linden: WTG!
[8:11] Zoey Linden gave you Zoey Linden's bear Michifu vs 1.11.
Keith Reinard ha scritto:script perfetto, ma per farlo più compatto (non fa mai male):
- Codice: Seleziona tutto
integer on = FALSE;
touch_start(integer t){
if(on) llParticleSystem([]);
else llParticleSystem([parametri]);
on = !on; //inverte il valore true/false di 'on'
}
default
{
state_entry()
{
llParticleSystem([]);
}
touch_end(integer total_number)
{
state Acceso;
}
}
state Acceso
{
state_entry()
{
llParticleSystem([parametri]);
}
touch_end(integer total_number)
{
state default;
}
}
integer Acceso=TRUE;
CambiaStato()
{
Acceso=!Acceso;
if(Acceso)
{
llParticleSystem([parametri]);
}
else
{
llParticleSystem([]);
}
}
default
{
state_entry()
{
Acceso=TRUE;
CambiaStato();
}
touch_end(integer total_number)
{
CambiaStato();
}
}
Visitano il forum: Nessuno e 1 ospite