ds_grid_multiply(index, x, y, val);
Argument | Description |
---|---|
index | The index of the grid. |
x | The x position of the cell in the grid. |
y | The y position of the cell in the grid. |
val | The value to multiply with the cell. |
Returns: N/A
This function will multiply the value of a the given grid cell
by the specified amount.
NOTE: This function will only work with real numbers, not
strings.
ds_grid_multiply(mygrid, 5, 5, 2);
the above code will multiply the value stored in the given ds_grid cell by 2.