|
Jeffery Beckersted
Registered User
Join date: 9 Apr 2006
Posts: 21
|
08-08-2006 18:10
Hi,
I've been doing okay at picking up LSL, but im a little lost as to the 'proper' way to do a cyclical dataserver request from a function until i have harvested all the data i need from that function, which will only respond with one variable at a time. After that point i need have it execute my own function requiring that data, once all the data i need was collected. The particular function i am working with in relation to the dataserver event is llRequestAgentData and is triggered by avatar touch.
Any suggestions are greatly appreciated.
|
|
Dragon Keen
Registered User
Join date: 24 Apr 2006
Posts: 245
|
08-08-2006 18:28
call the dataserver event from your main function, then repeat call it again INSIDE the dataserver to loop until its complete
Think of the datacenter as the for loop...
|
|
Xixao Dannunzio
Owner, X3D Enterprises
Join date: 20 Mar 2006
Posts: 114
|
08-09-2006 01:34
Alternatively, you could use seperate states. At the end of your dataserver event, call a new state. In state_entry(), setup for the next dataserver event.
Not the most efficient way of doing it, but much easier to organize your data if you're unfamiliar with these events, and sometimes necessary.
|