Difference between revisions of "Talk:LlSensorRemove"

From Second Life Wiki
Jump to navigation Jump to search
(Remove no_sensor() from example)
 
m
Line 9: Line 9:
         //If agent is not in range of sensor, this will search the agent again.
         //If agent is not in range of sensor, this will search the agent again.
     }</lsl><br/>-- '''[[User:Haravikk_Mistral|Haravikk]]''' <sup><small>([[User_talk:Haravikk_Mistral|talk]]|[[Special:Contributions/Haravikk_Mistral|contribs]])</small></sup> 10:03, 14 September 2012 (PDT)
     }</lsl><br/>-- '''[[User:Haravikk_Mistral|Haravikk]]''' <sup><small>([[User_talk:Haravikk_Mistral|talk]]|[[Special:Contributions/Haravikk_Mistral|contribs]])</small></sup> 10:03, 14 September 2012 (PDT)
:We both will need correcting, I agree with you. At first I  thought it was an example that was intended to use [[llSensor]] and not [[llSensorRepeat]] but then having the [[no_sensor]] event would essentially turn it into a [[llSensorRepeat]] with [[llRemoveSensor]] in the [[sensor]] statement (which it has). It looks like whoever upgraded the script forgot or didn't think to remove the [[no_sensor]] event. -- '''[[User:Strife_Onizuka|Strife]]''' <sup><small>([[User talk:Strife_Onizuka|talk]]|[[Special:Contributions/Strife_Onizuka|contribs]])</small></sup> 11:59, 14 September 2012 (PDT)

Revision as of 10:59, 14 September 2012

Remove no_sensor() from example

Someone correct me if I'm wrong, but I don't think the example needed its no_sensor() event, since it was just setting up exactly the same repeating sensor that would fire anyway. It looks like a copy/paste mistake of a script that would normally use a regular llSensor() call.

Here it is in case I've missed something: <lsl> no_sensor()

   {
       llSensorRepeat("", "", AGENT, 5, PI, 1);
       //If agent is not in range of sensor, this will search the agent again.
   }</lsl>
-- Haravikk (talk|contribs) 10:03, 14 September 2012 (PDT)
We both will need correcting, I agree with you. At first I thought it was an example that was intended to use llSensor and not llSensorRepeat but then having the no_sensor event would essentially turn it into a llSensorRepeat with llRemoveSensor in the sensor statement (which it has). It looks like whoever upgraded the script forgot or didn't think to remove the no_sensor event. -- Strife (talk|contribs) 11:59, 14 September 2012 (PDT)