AreaTrigger.setWaterType
Sets the liquid type of the area trigger. (See sm.areaTrigger.liquidType)
Kind: Function
Environments: Game
Game
areaTrigger:setWaterType( waterType )
Only has an effect on area triggers with the 'water' proxy type; setting it on any other proxy type has no effect.
Currently only 'lava' has special behavior: it occasionally destroys submerged shapes. Lava behavior requires
shapes to be included in the content list via AreaTrigger: setIncludeShapesInContent.
Parameters:
| Name | Type | Description |
|---|---|---|
areaTrigger |
AreaTrigger | The area trigger instance. |
waterType |
integer | The liquid type. (See sm.areaTrigger.liquidType) |