User Tools

Site Tools


set_terrain_types

Set Terrain Types


(WIP)

Modifies the terrain types that a character, vehicle, or pushable object is allowed to traverse. If the “terrain_mode” argument is other than ALL (i.e. PROHIBIT_FROM or RESTRICT_TO), then the “terrain_types” argument should contain an array of string values indicating which types of terrain the entity is either prohibited from or restricted to (e.g. a ship would be restricted to tiles having a terrain type of “water”).

Signature:

set_terrain_types(entity, terrain_mode, terrain_types)
ArgumentDescriptionTypeRequired
entity EntityYes
terrain_mode Terrain ModeYes
terrain_types ArrayNo

Example:

 

Results:

Use the Set Terrain Types function to…


Editor Node:

set_terrain_types.txt · Last modified: 2024/02/22 21:11 by justin