Difference between revisions of "LlDeleteCharacter"

From Second Life Wiki
Jump to navigation Jump to search
m
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Pathfinding alpha}}
{{Pathfinding LSL alpha}}
{{LSL_Function|
{{LSL_Function
func=llDeleteCharacter|
|func=llDeleteCharacter
func_desc=Convert the current linkset back to a standard object, removing all pathfinding properties.|
|func_desc=Convert the object back to a standard object, removing all pathfinding properties.
caveats=None|
|caveats=
examples=
|examples=
<lsl>
<source lang="lsl2">
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
default
{
{
    on_rez(integer start_param)
    {
        llResetScript();
    }
     state_entry()
     state_entry()
     {
     {
         llDeleteCharacter(); // Remove any previous pathfinding characteristics
         create_character();
        llCreateCharacter([CHARACTER_DESIRED_SPEED, 10.0]);
 
        llWanderWithin(llGetPos(), 10.0, []);
     }
     }
 
     touch_end(integer num_detected)
     touch_start(integer num_detected)
     {
     {
         llDeleteCharacter(); // Revert back to a normal prim on touch
    //  Clear any previous character behaviors
         llDeleteCharacter();
     }
     }
}
}
</lsl>|
</source>
also_functions=
|also_functions=
* [[llCreateCharacter]]
* [[llCreateCharacter]]
* [[llDeleteCharacter]]
* [[llDeleteCharacter]]
* [[llEvade]]
* [[llEvade]]
* [[llExecPathingCmd]]
* [[llExecCharacterCmd]]
* [[llGetClosestNavPoint]]
* [[llGetClosestNavPoint]]
* [[llFleeFrom]]
* [[llFleeFrom]]
Line 33: Line 46:
* [[llPursue]]
* [[llPursue]]
* [[llUpdateCharacter]]
* [[llUpdateCharacter]]
* [[llWanderWithin]]|
* [[llWanderWithin]]
also_events=
|also_events=
* [[path_update]]
* [[path_update]]
|history = Date of Release  [[ Release_Notes/Second_Life_Server/12#12.07.31.262785 | 31/07/2012 ]]
}}
}}

Revision as of 00:42, 22 January 2015

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();
    }
}

Deep Notes

History

Date of Release 31/07/2012

Search JIRA for related Issues

Signature

function void llDeleteCharacter();