SetWaveQuadDirection
Docslocal retval = SetWaveQuadDirection(waveQuad, directionX, directionY)Description
directionX/Y should be constrained between -1.0 and 1.0
A positive value will create the wave starting at min and rolling towards max
A negative value will create the wave starting at max and rolling towards min
Applying both values allows you to make diagonal waves
Parameters
| Name | Type | Description |
|---|---|---|
waveQuad | int | The wave quad index |
directionX | float | The minX coordinate |
directionY | float | The minY coordinate |
Returns
BOOLReturns TRUE (1) or FALSE (0).
Examples
Official
local success = SetWaveQuadDirection(0, 0.3, 0.1)