Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
// Script for moving an object attached to your screen (HUD). By clicking on the object, it moves to the second poistion you have defined.
// In this example, bPositioned = 0 defines the object's position while visible (the second set of coordinates) and bPositioned = 1 moves the object to the left, out of the screen (apart from a small tab, so you can retrieve it)
integer bPositioned = 0;
default
{
state_entry()
{
}
on_rez(integer p)
{
llResetScript();
}
touch_start(integer total_number)
{
if(0 == bPositioned)
{
llSetPos(<0.032, 0.765, -0.145>);
bPositioned = 1;
}
else
{
llSetPos(<0.032, 0.548, -0.145>);
bPositioned = 0;
}
}
}
I use this one when I need to move something off my HUD (I have a watch and a journal there). It's simple, but handy.
Oh dear, just noticed the amount of space in the code. I tend to use SciTE and tabbing for scripting. Any other suggestions to get a more space economical code?
OMG noooooooooooo! Not more economical :-) Your code reads just fine after so many months of seeing squished up, unformatted code!
Ah nevermind. I guess you are talking about the runout off the side of the screen? You probably have autowrap turned on in Scite like I usually do. I just did a little editting on mine when I posted here to fix it.
Noticed that one as well.. and will be sure to fix that when I post in the future.
Actually I was refering to the size (width? length?) of indentation for each "level". But if this works for people (I use four spaces for each tabbing in Scite), I shall leave it so.
1 to 4 of 4