default {
link_message(integer sender_num, integer num, string str, key id) {
float scale; // size factor
list primparams;
scale = (float)str;
primparams = [];
primparams += [PRIM_SIZE, llGetScale() * scale]; // resize
if (llGetLinkNumber() > 1) { // only move if we're not the root object
primparams += [PRIM_POSITION, llGetLocalPos() * scale]; // reposition
}
llSetPrimitiveParams(primparams);
}
}
Ok peps I found the above code in the lsl wiki. Kinda old school on how they want to you to give the scale. For the bast few days I will have been trying to come up with a way where I can send scale presets on a linked message But thats they easy part. I think what I want to happen needs to use the lsl math commands. What I want to do is scale in steps of like if picked
+ 0.010
++ 0.050
+++ 0.100
- 0.010
-- 0.050
--- 0.100
with the one I see in the lsl wiki if I send 0.010 it will set the scale of prims to 0.010 not scaleing them step by step. Any ideas on how I would about doing a step by step set up?
scale.x + change) / scale.x, (scale.y + change) / scale.y, (scale.z + change) / scale.z>;