link_message(integer linknum, integer num, string str, key id) { if(str == "died" || str == "detach" || str == "nohealth") { llMessageLinked(LINK_SET,1,"ok",NULL_KEY); //add here whatever disables the object } else if (str == "reset" || str == "attach") { //add here whatever enables the object again } }