TerrainChooseToolBehavior

Package: Libraries.Interface.Behaviors.Scenes.Selection · Inherits from: Libraries.Language.Object, Libraries.Interface.Behaviors.Behavior

The TerrainChooseToolBehavior chooses one of a selected terrain's tools in the scene editor. The scene editor's input tables give it the keys Alt+1 to Alt+9, then Shift+Alt+1 to Shift+Alt+7, by default (SceneEditorKeys:GetTerrainToolKey). With anything but a terrain selected, it does nothing.

Actions

GetTool()

Returns which tool this behavior chooses.

Returns

integer: The tool's number, from 1 to 16

Run(Libraries.Interface.Events.BehaviorEvent event)

Returns which tool this behavior chooses.

Parameters

SetTool(integer toolNumber)

Sets which tool this behavior chooses, numbered as in the in-game terrain editor: 1 raise, 2 lower, 3 smooth, 4 flatten, 5 ramp, 6 paint, 7 blend paint, 8 add region, 9 remove region, then the scene editor's own: 10 stamp, 11 erode, 12 auto paint, 13 foliage, 14 fill water, 15 paint water.

Parameters

  • toolNumber integer: The tool's number, from 1 to 16

Inherited Actions

7 actions from Libraries.Interface.Behaviors.Behavior
3 actions from Libraries.Language.Object