Difference between revisions of "LlGetNextEmail"

From Second Life Wiki
Jump to navigation Jump to search
(Added example.)
m (formatted example)
Line 9: Line 9:
|constants
|constants
|examples=
|examples=
<pre>
<lsl>
default {
default {
     state_entry() {
     state_entry() {
Line 25: Line 25:
     }
     }
}
}
</pre>
</lsl>
|helpers
|helpers
|also_functions
|also_functions

Revision as of 20:34, 18 February 2008

Summary

Function: llGetNextEmail( string address, string subject );
0.0 Forced Delay
10.0 Energy

Get the next waiting email with appropriate address and/or subject (if blank they are ignored)

• string address
• string subject

Examples

<lsl> default {

   state_entry() {
       llSetTimerEvent(1); //Don't go much lower than this...
   }
   
   timer() {
       llGetNextEmail("", ""); //Check for emails
   }
   
   email(string time, string address, string subj, string message, integer num_left) {
    
        llOwnerSay("I got an email: " + subj + "\n" + message);
      
   }

}

</lsl>

See Also

Events

Deep Notes

Signature

function void llGetNextEmail( string address, string subject );