|
Jacob Shaftoe
Registered User
Join date: 20 Apr 2005
Posts: 22
|
09-03-2006 19:05
I need a way to scale ONLY the axis Z by a decrementing value.
start_amount = //current Z start_amount = start_amount-0.5; or something like that. how can I just do simple subtraction and multiplication on a vector element? i'm having trouble there. I even tried to set it to float to work on it but that doesn't seem to work. i'm stuck.
I use llGetScale to get the vector, but then I want to llSetScale but ONLY z and decrementing at that. make sense?
|
|
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
|
09-03-2006 19:14
From: Jacob Shaftoe I use llGetScale to get the vector, but then I want to llSetScale but ONLY z and decrementing at that. make sense? vector size = llGetScale(); size.z *= 0.5; llSetScale( size );
For future reference check out LSL Wiki, it covers tons of things like that ^^
|
|
Jacob Shaftoe
Registered User
Join date: 20 Apr 2005
Posts: 22
|
09-03-2006 19:28
From: Joannah Cramer vector size = llGetScale(); size.z *= 0.5; llSetScale( size );
For future reference check out LSL Wiki, it covers tons of things like that ^^ I've got LSL wiki open right now, I've been using it just not thinking I guess lol... Thanks for the help man
|