ds_grid_multiply

This function will multiply the value of the given grid cell by the specified amount.

NOTE This function will only work with real numbers, not strings.

 

Syntax:

ds_grid_multiply(index, x, y, val);

ArgumentTypeDescription
indexDS GridThe index of the grid.
xRealThe x position of the cell in the grid.
yRealThe y position of the cell in the grid.
valRealThe value to multiply with the cell.

 

Returns:

N/A

 

Example:

ds_grid_multiply(mygrid, 5, 5, 2)

The above code will multiply the value stored in the given DS grid cell by 2.