Difference between revisions of "LlDeleteCharacter"
Jump to navigation
Jump to search
Pedro Oval (talk | contribs) m (Change category from Pathfinding to LSL Pathfinding) |
m |
||
Line 5: | Line 5: | ||
|caveats= | |caveats= | ||
|examples= | |examples= | ||
< | <source lang="lsl2"> | ||
create_character() | create_character() | ||
{ | { | ||
Line 34: | Line 34: | ||
} | } | ||
} | } | ||
</ | </source> | ||
|also_functions= | |also_functions= | ||
* [[llCreateCharacter]] | * [[llCreateCharacter]] |
Revision as of 23:42, 21 January 2015
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llDeleteCharacter( );Convert the object back to a standard object, removing all pathfinding properties.
Examples
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();
}
}