This page might migrate to a wiki to allow free entry of tips. Currently I'm maintaining it this way so if you have ideas for content, email, IM or drop a notecard on me and I'll try to keep it updated. I will acknowledge the origin of the tip.
| Category | Tip | From |
|---|---|---|
| Check if agent is in sim | You can use if(llKey2Name(some_key)!="") of course, but this is slow and sometimes gets child agents etc. For most occasions you can use if(llGetAgentInfo(some_key)!=0) although if the agent is standing still and has no attachments (how likely is THAT?) you can get false negatives. | Helena Lycia |
| Searching lists or strings | Need to just check if that item is in the list, or that substring is in the string: if(llListFindList(src, [item])+1) or if(llSubStringIndex(src, "term")+1) will give you TRUE if it exists anywhere, and FALSE if it's not there. | Eloise Pasteur |
| Want to drag someone by an attachment? | touch( integer fn_nDetected ) { llApplyImpulse( llDetectedGrab( 0 ), FALSE ); } | Lillani Lowell |
| Need a vehicle that copes (reasonably) well with standing passengers? | Try making the vehicle type balloon, play with buoyancy and see | Helena Lycia |
I am not in any way affiliated with Linden Lab. This site advertises my work within their virtual environment.
The terms Second Life, Linden Lab and SL are trademarks belonging to Linden Lab. No infringement of their trademark is intended. Usage here is nominative.