Difference between revisions of "Template:LSL Constants/Pursue"
Jump to navigation
Jump to search
Pedro Oval (talk | contribs) m (Change category from Pathfinding to LSL_Pathfinding) |
Frionil Fang (talk | contribs) (deprecated template) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{Pathfinding | <noinclude>{{LSLC|Pathfinding}}</noinclude> | ||
{| {{Prettytable}} | {| {{Prettytable}} | ||
|-{{Hl2}} | |-{{Hl2}} | ||
Line 11: | Line 11: | ||
|1 | |1 | ||
|Go to a position offset from the target. | |Go to a position offset from the target. | ||
|< | |<source lang="lsl2">[PURSUIT_OFFSET, vector offset]</source> | ||
|[[ZERO_VECTOR]] | |[[ZERO_VECTOR]] | ||
|- | |- | ||
Line 17: | Line 17: | ||
|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. | ||
|< | |<source lang="lsl2">[REQUIRE_LINE_OF_SIGHT, integer boolean]</source> | ||
|[[FALSE]] | |[[FALSE]] | ||
|- | |- | ||
Line 23: | Line 23: | ||
|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. | ||
|< | |<source lang="lsl2">[PURSUIT_FUZZ_FACTOR, float factor]</source> | ||
|0.0 | |0.0 | ||
|- | |- | ||
Line 29: | Line 29: | ||
|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. | ||
|< | |<source lang="lsl2">[PURSUIT_INTERCEPT, integer boolean]</source> | ||
|[[FALSE]] | |[[FALSE]] | ||
|- | |- | ||
Line 35: | Line 35: | ||
|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. | ||
|< | |<source lang="lsl2">[PURSUIT_GOAL_TOLERANCE, float tolerance]</source> | ||
|Default is proportional to character size | |Default is proportional to character size | ||
|} | |} |
Latest revision as of 15:46, 28 October 2023
Option | Value | Description | Usage | Default Value |
---|---|---|---|---|
PURSUIT_OFFSET | 1 | Go to a position offset from the target. | [PURSUIT_OFFSET, vector offset]
|
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. | [REQUIRE_LINE_OF_SIGHT, integer boolean]
|
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. | [PURSUIT_FUZZ_FACTOR, float factor]
|
0.0 |
PURSUIT_INTERCEPT | 4 | Define whether the character attempts to predict the target's future location. | [PURSUIT_INTERCEPT, integer boolean]
|
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. | [PURSUIT_GOAL_TOLERANCE, float tolerance]
|
Default is proportional to character size |