Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

I think I have lost my mind....

Dahlia Genira
Registered User
Join date: 29 May 2009
Posts: 8
07-20-2009 18:11
Maybe this just cant be done, but is it possible to get a vector from the object description?

example:
vector offset = llGetObjectDesc();
llRezAtRoot(message, llGetPos() + offset, ZERO_VECTOR, ZERO_ROTATION, 0);

figured that if it can be done from a nc it can be done from a desc.
Or maybe I am just doing it wrong, lol wouldn't be the first time!
Dahlia Genira
Registered User
Join date: 29 May 2009
Posts: 8
07-20-2009 18:20
got it, lol forgot a (vector) before the llGetObjectDesc
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
07-20-2009 18:21
From: Dahlia Genira
Maybe this just cant be done, but is it possible to get a vector from the object description?

example:
vector offset = llGetObjectDesc();
llRezAtRoot(message, llGetPos() + offset, ZERO_VECTOR, ZERO_ROTATION, 0);

figured that if it can be done from a nc it can be done from a desc.
Or maybe I am just doing it wrong, lol wouldn't be the first time!


you're on the right track, but you need to type cast it, IE

vector offset = (vector)llGetObjectDesc();

llGetObjectDesc returns a string, so you have to change that string to a vector to use it as one

http://www.lslwiki.net/lslwiki/wakka.php?wakka=Typecast
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369