Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSetScale not working for me

Robin Peel
Registered User
Join date: 8 Feb 2005
Posts: 163
05-04-2006 06:00
I have a light beam that is a child prim. I have used this in other lights, but this one isn't resizing. I've been through it time and again, and can't figure it out. So I am here asking the pro scripters what can be the problem.
The object only has 2 prims. When I give the command I want it to resize to a small little size, then when turned on to grow to the normal size.
What did I do wrong?
Thank you
CODE

default
{
state_entry()
{
llListen(1,"","","");
}

on_rez(integer start_param)
{
llSetStatus(STATUS_PHANTOM,TRUE);
}
listen(integer channel, string name, key id, string message)
{
if (message == "off")
{
llSetAlpha(0,ALL_SIDES);
llSetScale (<0.01,0.01,0.01>);
}
if (message == "on")
{
llSetAlpha(1,ALL_SIDES);
llSetScale (<3.000,3.000,9.000>);
}
}
}
Frans Charming
You only need one Frans
Join date: 28 Jan 2005
Posts: 1,847
05-04-2006 06:36
The script works for me.
Are you sure you aren't tired, and giving the commands in open chat instead of on /1. ;)
_____________________
Rodrick Harrington
Registered User
Join date: 9 Jul 2005
Posts: 150
05-04-2006 06:43
I've hit a weird bug once or twice with llSetScale and hardly ever use it. When called rapidly (and rapidly can be 2x a second for one second sometimes) llSetScale sometimes freezes the prim size and you cannot resize it either via script or the edit window afterwards. Sometimes it "unsticks" other times I've left 'em for days and still stuck. I know that's not very specific, but see if you can resize via the edit window.
Robin Peel
Registered User
Join date: 8 Feb 2005
Posts: 163
05-04-2006 07:23
hmm. just tried editing it, x and y worked but not z. i guess i have to remake the prim. darn it.
Well for what ever reason, when i linked it, no matter what order i linked it, it would not resize, but since it isn't moving i will just leave it unlinked.
Does anyone know why this would happen and how I might be able to fix it?
Thank you
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
05-04-2006 13:04
You have run into the link distance constraints. The only solution is to make your root prim larger.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey