Difference between revisions of "LlDeleteCharacter"

From Second Life Wiki
Jump to navigation Jump to search
m (added date of release)
m (Change category from Pathfinding to LSL Pathfinding)
Line 1: Line 1:
{{Pathfinding alpha}}
{{Pathfinding LSL alpha}}
{{LSL_Function
{{LSL_Function
|func=llDeleteCharacter
|func=llDeleteCharacter

Revision as of 06:39, 30 August 2013

Summary

Function: llDeleteCharacter( );

Convert the object back to a standard object, removing all pathfinding properties.

Examples

<lsl> create_character() { // Clear any previous character behaviors

   llDeleteCharacter();

// default speed is 20

   llCreateCharacter([CHARACTER_DESIRED_SPEED, 10.0]);
   llWanderWithin(llGetPos(), <10.0, 10.0, 2.0>, []);

}

default {

   on_rez(integer start_param)
   {
       llResetScript();
   }
   state_entry()
   {
       create_character();
   }

   touch_start(integer num_detected)
   {
   //  Clear any previous character behaviors
       llDeleteCharacter();
   }

}

</lsl>

Deep Notes

History

Date of Release 31/07/2012

Search JIRA for related Issues

Signature

function void llDeleteCharacter();