ds_grid_multiply


描述

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(index, x, y, val);

参数 描述
index 栅格的索引
x 栅格内单元格的x位置
y 栅格内单元格的y位置
val The value to multiply with the cell.


Returns:

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.