Difference between revisions of "LlTarget"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{LSL_Function
{{LSL_Function
|func_id=66|func_sleep=0.0|func_energy=10.0
|func_id=66|func_sleep=0.0|func_energy=10.0
|func=llTarget
|func=llTarget|sort=Target
|return_type=integer|p1_type=vector|p1_name=position|p2_type=float|p2_name=range
|return_type=integer
|p1_type=vector|p1_name=position
|p2_type=float|p2_name=range
|func_footnote=A similar function exists for rotations: {{LSLG|llRotTarget}}<br/>This function does not move the object, to do that use {{LSLG|llSetPos}} or {{LSLG|llMoveToTarget}}.
|func_footnote=A similar function exists for rotations: {{LSLG|llRotTarget}}<br/>This function does not move the object, to do that use {{LSLG|llSetPos}} or {{LSLG|llMoveToTarget}}.
|func_desc=This function is to have the script know when it has reached a position.<br/>It registers a '''position''' with a '''range''' that triggers {{LSLG|at_target}} and {{LSLG|not_at_target}} events continuously until unregistered.
|func_desc=This function is to have the script know when it has reached a position.<br/>It registers a '''position''' with a '''range''' that triggers {{LSLG|at_target}} and {{LSLG|not_at_target}} events continuously until unregistered.
|return_text=that is the handle to unregister the target with {{LSLG|llTargetRemove}}
|return_text=that is the handle to unregister the target with {{LSLG|llTargetRemove}}.
|spec
|spec
|caveats
|caveats
Line 11: Line 13:
|examples
|examples
|helpers
|helpers
|also_functions=*{{LSLG|llRotTarget}}
|also_functions={{LSL DefineRow||{{LSLG|llRotTarget}}|}}
*{{LSLG|llTargetRemove}}
{{LSL DefineRow||{{LSLG|llTargetRemove}}
|also_tests
|also_tests
|also_events=*{{LSLG|at_target}}
|also_events={{LSL DefineRow||{{LSLG|at_target}}|}}
*{{LSLG|not_at_target}}
{{LSL DefineRow||{{LSLG|not_at_target}}|}}
|also_articles
|also_articles
|notes
|notes

Revision as of 13:26, 25 February 2007

{{LSL_Function |func_id=66|func_sleep=0.0|func_energy=10.0 |func=llTarget|sort=Target |return_type=integer |p1_type=vector|p1_name=position |p2_type=float|p2_name=range |func_footnote=A similar function exists for rotations: llRotTarget
This function does not move the object, to do that use llSetPos or llMoveToTarget. |func_desc=This function is to have the script know when it has reached a position.
It registers a position with a range that triggers at_target and not_at_target events continuously until unregistered. |return_text=that is the handle to unregister the target with llTargetRemove. |spec |caveats |constants |examples |helpers |also_functions=|-style="vertical-align:top;" | style="color:gray;" |•  | llRotTarget | style="color:gray;" | | | |-style="vertical-align:top;" | style="color:gray;" |•  | llTargetRemove

| style="color:gray;" | – | also_tests

| also_articles