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.
ds_grid_multiply(index, x, y, val);
Argument | Type | Description |
---|---|---|
index | DS Grid | The index of the grid. |
x | Real | The x position of the cell in the grid. |
y | Real | The y position of the cell in the grid. |
val | Real | The value to multiply with the cell. |
N/A
ds_grid_multiply(mygrid, 5, 5, 2)
The above code will multiply the value stored in the given DS grid cell by 2.