This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 4rpl:commands:createmist [2024/02/03 23:00] – Copy and paste table setup provided. Vertu | 4rpl:commands:createmist [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 19: | Line 19: | ||
| Each value in the color and color2 vectors is a floating point number where 1 is full brightness and 0 is minimal brightness. Values over 1 make the mist glow. | Each value in the color and color2 vectors is a floating point number where 1 is full brightness and 0 is minimal brightness. Values over 1 make the mist glow. | ||
| - | :NOTE: There is a hidden hard cap for the amount of mist that can exist. | + | :NOTE: There is a hidden hard cap for the amount of mist that can exist. |
| + | Avoid calling this API every frame to avoid reaching this cap. Every 5 frames is far more reasonable. | ||
| ===== Examples ===== | ===== Examples ===== | ||
| <code 4rpl> | <code 4rpl> | ||
| Line 50: | Line 51: | ||
| #Since " | #Since " | ||
| #By swapping the " | #By swapping the " | ||
| + | </ | ||
| + | |||
| + | <code 4rpl> | ||
| + | if(GetUnitUpdateCount 5 % eq0) #Ensure we don't make uneccessary mist. | ||
| + | CreateMist(GetUnitPosition(self) < | ||
| + | endif | ||
| + | |||
| + | :Once | ||
| + | Table(" | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| </ | </ | ||
| ==== Copy and paste preset: ==== | ==== Copy and paste preset: ==== | ||
| <code 4rpl> | <code 4rpl> | ||
| - | Table( | + | Table(" |
| - | " | + | |
| " | " | ||
| " | " | ||