getCellsToUseWeapon

getCellsToUseWeapon([number weapon], number entity, [array<integer> ignoredCells]) → array<integer> cells
Lists all cells that allow your entity to shoot a given weapon, targeting given entity.

Returns the list of cells from which your entity can use the weapon weapon on the entity entity. Note that the caster's cell will be part of the result if the weapon has an effect on the caster, such as the J-Laser.

Parameters
Return