Difference between revisions of "Template:LSL Constants/Pursue"

From Second Life Wiki
Jump to navigation Jump to search
m (linked to (still non-existant) articles within the wiki)
Line 8: Line 8:
!Default Value
!Default Value
|-
|-
|PURSUIT_OFFSET
|[[PURSUIT_OFFSET]]
|1
|1
|Go to a position offset from the target.
|Go to a position offset from the target.
|<lsl>[PURSUIT_OFFSET, vector offset]</lsl>
|<lsl>[PURSUIT_OFFSET, vector offset]</lsl>
|ZERO_VECTOR
|[[ZERO_VECTOR]]
|-
|-
|REQUIRE_LINE_OF_SIGHT
|[[REQUIRE_LINE_OF_SIGHT]]
|2
|2
|Define whether the character needs a physical line-of-sight to give chase.  When enabled, the character will not pick a new target position while there is a something solid between the character and the target object/agent.
|Define whether the character needs a physical line-of-sight to give chase.  When enabled, the character will not pick a new target position while there is a something solid between the character and the target object/agent.
|<lsl>[REQUIRE_LINE_OF_SIGHT, integer boolean]</lsl>
|<lsl>[REQUIRE_LINE_OF_SIGHT, integer boolean]</lsl>
|FALSE
|[[FALSE]]
|-
|-
|PURSUIT_FUZZ_FACTOR
|[[PURSUIT_FUZZ_FACTOR]]
|3
|3
|Selects a random destination near the PURSUIT_OFFSET.  The valid fuzz factor range is from 0 to 1, where 1 is most random.  This option requires a nonzero PURSUIT_OFFSET.
|Selects a random destination near the PURSUIT_OFFSET.  The valid fuzz factor range is from 0 to 1, where 1 is most random.  This option requires a nonzero PURSUIT_OFFSET.
Line 26: Line 26:
|0.0
|0.0
|-
|-
|PURSUIT_INTERCEPT
|[[PURSUIT_INTERCEPT]]
|4
|4
|Define whether the character attempts to predict the target's future location.
|Define whether the character attempts to predict the target's future location.
|<lsl>[PURSUIT_INTERCEPT, integer boolean]</lsl>
|<lsl>[PURSUIT_INTERCEPT, integer boolean]</lsl>
|FALSE
|[[FALSE]]
|-
|-
|PURSUIT_GOAL_TOLERANCE
|[[PURSUIT_GOAL_TOLERANCE]]
|5
|5
|Defines approximately how close the character must be to the current goal to consider itself to be at the desired position.  The valid range is from 0.25 to 10m.
|Defines approximately how close the character must be to the current goal to consider itself to be at the desired position.  The valid range is from 0.25 to 10m.

Revision as of 14:45, 4 December 2012

Option Value Description Usage Default Value
PURSUIT_OFFSET 1 Go to a position offset from the target. <lsl>[PURSUIT_OFFSET, vector offset]</lsl> ZERO_VECTOR
REQUIRE_LINE_OF_SIGHT 2 Define whether the character needs a physical line-of-sight to give chase. When enabled, the character will not pick a new target position while there is a something solid between the character and the target object/agent. <lsl>[REQUIRE_LINE_OF_SIGHT, integer boolean]</lsl> FALSE
PURSUIT_FUZZ_FACTOR 3 Selects a random destination near the PURSUIT_OFFSET. The valid fuzz factor range is from 0 to 1, where 1 is most random. This option requires a nonzero PURSUIT_OFFSET. <lsl>[PURSUIT_FUZZ_FACTOR, float factor]</lsl> 0.0
PURSUIT_INTERCEPT 4 Define whether the character attempts to predict the target's future location. <lsl>[PURSUIT_INTERCEPT, integer boolean]</lsl> FALSE
PURSUIT_GOAL_TOLERANCE 5 Defines approximately how close the character must be to the current goal to consider itself to be at the desired position. The valid range is from 0.25 to 10m. <lsl>[PURSUIT_GOAL_TOLERANCE, float tolerance]</lsl> Default is proportional to character size