User:Lastro Greenwood
Revision as of 16:31, 6 August 2010 by Lastro Greenwood (talk | contribs) (→Lastro Greenwood's Page)
Lastro Greenwood's Page
Hey everyone, I'm Lastro Greenwood.
I specialise in software development but can kinda build.
Scratch Pad
<lsl>integer getnumobj(list traceres) {
return (integer)llList2String(traceres,llGetListLength(traceres)-1);
}
integer isVisible(vector start, vector finish) {
list res = llCastRay(start,finish,0,0); integer numobj = getnumobj(res); if(numobj == 0) return TRUE; return FALSE;
}
default {
state_entry() { }
touch_start(integer total_number) { vector pos = llGetPos(); vector finalpos = llDetectedPos(0); if(isVisible(pos,finalpos) == TRUE) llOwnerSay("I can see clearly now!"); else llOwnerSay("Something is in my way!"); }
}</lsl>