User Tools

Site Tools


4rpl:commands:fc

This is an old revision of the document!


Index

FC

FC(<-cellX <-cellZ) ->flatCell

Description

Takes a map cell coordinate and returns a flattened cell location. The flat cell location is equal to: cellX + cellZ * MAP_WIDTH Note: THe X and Z coordinates will be clipped to the map bounds. So values less than 0 are permuted to 0, x is limited to MAP_WIDTH-1, etc.

Examples

FC(GetRandMapCell) ->C
GetGlobalList(<-C) ->data
<-data 1 + ->data
SetGlobalList(<-C)

Index

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