Count In llGetObjectDesc Example

Written by: Headmaster
default
{
    touch_start(integer total_number)
    {
        integer count;
        // Retrieves the count
        count = (integer)llGetObjectDesc();
        // Increment it
        count++;
        // Save it
        llSetObjectDesc((string)count);
    }
}

 

Category: