Difference between revisions of "LlDeleteCharacter"
Jump to navigation
Jump to search
(Created page with "{{Pathfinding alpha}} {{LSL_Function| func=llDeleteCharacter| func_desc=Convert the current linkset back to a standard object, removing all pathfinding properties.| caveats=None|…") |
Frionil Fang (talk | contribs) (deprecated template) |
||
(8 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{LSL_Function | ||
|func=llDeleteCharacter | |||
func=llDeleteCharacter| | |func_desc=Convert the object back to a standard object, removing all pathfinding properties. | ||
func_desc=Convert the | |caveats= | ||
caveats= | |examples= | ||
examples= | <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() | ||
{ | { | ||
create_character(); | |||
} | } | ||
touch_start(integer num_detected) | |||
{ | { | ||
llDeleteCharacter(); | // Clear any previous character behaviors | ||
llDeleteCharacter(); | |||
} | } | ||
} | } | ||
</ | </source> | ||
also_functions=* [[llCreateCharacter]] | |also_functions= | ||
* [[llCreateCharacter]] | |||
* [[llDeleteCharacter]] | |||
* [[llEvade]] | |||
* [[llExecCharacterCmd]] | |||
* [[llGetClosestNavPoint]] | |||
* [[llFleeFrom]] | |||
* [[llNavigateTo]] | |||
* [[llPatrolPoints]] | |||
* [[llPursue]] | |||
* [[llUpdateCharacter]] | |||
* [[llWanderWithin]] | |||
|also_events= | |||
* [[path_update]] | |||
|history = Date of Release [[ Release_Notes/Second_Life_Server/12#12.07.31.262785 | 31/07/2012 ]] | |||
|cat1=Pathfinding | |||
}} | }} |
Latest revision as of 15:19, 28 October 2023
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();
}
}