Hi all. Im trying to customize open collar titler to turn off when there is an avatar in range.
Im getting a syntax error when i add a no_sensor() condition to the "if" clause.
Not sure if im missing something but the code is fine when just leave the original if clause instead of mine.
Titler(){
// llSetTimerEvent(2.5);
// Show the title if applicable after 5 seconds
//Why should this be done with a delay??? Moving it here.
//Show titler if no avatars in 3 meters range //Brujita 8.3
llSensor("", NULL_KEY, AGENT_BY_LEGACY_NAME, 3.0, PI); //Brujita 8.3
//if(g_iShow){ //Brujita 8.3
if(g_iShow && no_sensor()){ //Brujita 8.3
string offsets = "";
integer i=0;
for(i=0;i<g_iOffset;i++){
offsets+=" \n";
}
llSetLinkPrimitiveParams(g_iTextPrim, [PRIM_TEXT, g_sTitle+offsets, g_vColor, 1]);
}else llSetLinkPrimitiveParams(g_iTextPrim, [PRIM_TEXT, "", ZERO_VECTOR, 0]);
}