User Tools

Site Tools


4rpl:commands:getflow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
4rpl:commands:getflow [2025/12/25 21:27] – expand Grabz4rpl:commands:getflow [2025/12/25 22:03] (current) – previous assertion was wrong, this one is correct Grabz
Line 13: Line 13:
 ===== Description ===== ===== Description =====
 Gets the wave flow vector for a given map location. Gets the wave flow vector for a given map location.
-Perfectly still creeper that isn't flowing will have a {0,0} flow vector. Once creeper starts to flow, the flow vector will store the amount of creeper that moved in or out of the cell on the last game update frame. So creeper flowing only towards the right of the map, would return a positive flowX and a zero flowZ.+Perfectly still creeper that isn't flowing will have a {0,0} flow vector. Once creeper starts to flow, the flow vector will store the amount of creeper that moved in or out of the cell on the last game update frame. So creeper flowing only towards the right of the map, would return a positive flowX and a zero flowZ. **Values for AC are reversed, AC flowing towards the right of the map would return a negative flowX.**
  
-Note that flow values in integer creeper values. A value of 1000000 (1 million) represents an amount of "1" creeper on the map. Flow of Creeper is represented with positive values (e.g. 1000000), while flow of AC is represented with negative values (e.g. -1000000).+Note that flow values in integer creeper values. A value of 1000000 (1 million) represents an amount of "1" creeper on the map.
  
 Flow values can be useful for finding/setting waves. Flow values can be useful for finding/setting waves.
4rpl/commands/getflow.txt · Last modified: 2025/12/25 22:03 by Grabz