User Tools

Site Tools


4rpl:commands:getmaxcreepercellwithdamage

This is an old revision of the document!


Index
Creeper

GetMaxCreeperCellWithDamage

GetMaxCreeperCellWithDamage ->maxCreeperCellZ ->maxCreeperCellX

Description

Gets the map location that contains the maximum amount of creeper, factoring in the damage map. If the map contains no creeper, the returned X coordinate will be negative (not on the map)

Note that if you use it on the first frame of the map before it has calculated the creeper map by advancing a frame it will return 0, 0 instead of -1, 0.

Examples

#Point a unit towards the deepest creeper on the map, factoring in the damage map
GetMaxCreeperCellWithDamage ->cellZ ->cellX
RotateUnitTowards2D(<-unitUID <-cellX <-cellZ 10)

Index

4rpl/commands/getmaxcreepercellwithdamage.1652805717.txt.gz · Last modified: 2025/02/14 14:56 (external edit)