I have looked but no luck, can somebody point me in the right direction as how to or the llcommand to get a parameter for a script from the object description.
Thanks
These forums are CLOSED. Please visit the new forums HERE
Get parameter from the object Decription |
|
|
Knight Nootan
Registered User
Join date: 26 May 2008
Posts: 73
|
05-18-2009 09:35
I have looked but no luck, can somebody point me in the right direction as how to or the llcommand to get a parameter for a script from the object description.
Thanks |
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
05-18-2009 10:15
CODE
You might want to add a check for an empty list ('details'), which means the object is not available in the current sim. |
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
05-18-2009 11:06
or more simply llGetObjectDesc and llSetObjectDesc if your script is in the prim you want to get the info from (or set to)
_____________________
|
| . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - |
|
Papalopulus Kobolowski
working mind
Join date: 11 Aug 2006
Posts: 326
|
05-18-2009 16:34
If you need a few diferent data f-rom your object description you can use
llCSV2List and input your data in the obj desc with comma separated. | 0,my name,2,9| <----- example of data in your desc list yourlist=llCSV2List(llGetObjectDesc()); // this will "save" your desc in the list then for use it just do this integer first_value =(integer)llList2String(yourlist,0); string sec_value =(string)llList2String(yourlist,1); and so on.... _____________________
![]() RAW terrain files - terraform your SIM!! http://www.wishland.info/ PD:the wiki its your friend ![]() http://wiki.secondlife.com/wiki/LSL_Portal |
|
Knight Nootan
Registered User
Join date: 26 May 2008
Posts: 73
|
05-18-2009 21:24
Thank you everybody for your responses!!
|