These forums are CLOSED. Please visit the new forums HERE
Where can explain Functions better |
|
|
Jolly Heron
www.ideashape.cn/
Join date: 18 Apr 2007
Posts: 71
|
01-22-2008 00:49
I found the description of function on LSL Wiki is too simple to understand. For example, I still don't know how to set the 'number' in 'llDetectedLinkNumber(integer number)' even after reading the page. Is there a better place to understand functions?
_____________________
Different Virtual Worlds: http://www.ideashape.cn/
|
|
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
|
01-22-2008 01:17
An event like touch will return a number specifying how many touches were accumulated / detected for that one event.
the llDetected functions allow you to specify a number ranging from 0 to the detected number -1 to get the information for that specific touch / collision / whatever event. Usually you will find that it is not neccessary to process all the detected events. In most cases you only want to check llDetected*whatever*(0) which is the first event in the particular queue. Should there be more than one event queued, the rest will be silently ignored. |
|
Jolly Heron
www.ideashape.cn/
Join date: 18 Apr 2007
Posts: 71
|
01-22-2008 21:30
Thanks, Squirrel. But it's just an example. I don't know how to set the parameters in many functions by lslwiki. I want a better place to understand lsl functions better.
_____________________
Different Virtual Worlds: http://www.ideashape.cn/
|
|
Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
|
01-23-2008 00:00
Hi Jolly. LSL is a pretty limited language. All of the function calls use a fairly small set of arguments, so once you get the hang of a basic set of commands I think you'll understand the rest pretty easily. So, the most important thing is to get a really solid grounding in the basics.
You might try this Dr. Dobb's tutorial: http://www.ddj.com/hpc-high-performance-computing/197008520;jsessionid=TFNRVVNC0P2GEQSNDLPCKHSCJUNN2JVN or go through the tutorials on the first page of the wiki very carefully. Another option is to take some scripting classes at TUI or NCI. They're pretty good, and the instructor will be able to answer any detailed syntax questions you may have. Have fun! _____________________
.
To contact forum folks, join the inworld group "The Forum Cartel". New residents with questions about SL more than welcome! We has parties! To contact forum scripters, join the inworld group "Scriptoratti" (thanks Void!). New scripter questions welcome! |