This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
crpl:docs:getnearestgroundenemy [2015/03/11 13:14] – created warren | crpl:docs:getnearestgroundenemy [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | + | |
<- [[crpl: | <- [[crpl: | ||
- | ===== | + | ===== |
^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
- | | X and Y coord of unit, search range, LOS_test, creeper, digitalis, anticreeper | X and Y coord of target |'' | + | | X and Y coord of unit, search range, LOS_test, creeper, digitalis, anticreeper | X and Y coord of target |'' |
=== Description === | === Description === | ||
Line 11: | Line 11: | ||
If LOS_test is set to true, your custom weapon will not see the creeper at higher elevations, or hiding behind a wall of higher elevation. | If LOS_test is set to true, your custom weapon will not see the creeper at higher elevations, or hiding behind a wall of higher elevation. | ||
- | each of creeper, digitalis and anticreeper must be set to TRUE or FALSE. This controls which of the three is searched for. Any combination is legal. | + | Each of creeper, digitalis and anticreeper must be set to TRUE or FALSE. This controls which of the three is searched for. Any combination is legal. |
If target is not found, (-1,-1) is returned. | If target is not found, (-1,-1) is returned. |