Mechanique Thirty
Pretty Spider
Join date: 15 Mar 2005
Posts: 60
|
03-17-2005 22:50
Hi. Been around a couple days, just getting started with scripting. I decided to make a big ol' windup key for myself to wear, after doing the first couple examples in the guide. But it doesn't seem to turn when it's attatched to me. This is what I have right now: when I put it on an avatar, it's supposed to use the llTargetOmega to start turning, and debug llSays indicate that it does execute this code. It just never starts turning... default { //start turning when we wear it attach (key avatar) { // putting in the inventory attaches it to a null av... if (avatar) { llTargetOmega (<0,0,1>,4,1); } } touch (integer num) { llTargetOmega (<0,0,1>,4,1); } } Any help is appreciated, even if it's 'no, llTargetOmega doesn't work for things stuck to avatars'. - M. Thirty
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
03-17-2005 23:14
llTargetOmega doesn't work for attachments, sorry. Neither does llSetRot or most anything else to do with kinematic motion, thought the physicals like llSetForce will affect the avatar.
|
Mechanique Thirty
Pretty Spider
Join date: 15 Mar 2005
Posts: 60
|
03-17-2005 23:43
Yeah, I discovered that it just Doesn't Work For Attatchments by some considered forum-searching. Right now I'm experimenting with having a dummy object rez in the actual object, but that's not doing it either. Mmm.
|