User Tools

Site Tools


set_terrain_types

This is an old revision of the document!


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:

set_terrain_types();

Results:

Use the Set Terrain Types function to…


Editor Node:

set_terrain_types.1707453726.txt.gz · Last modified: 2024/02/08 20:42 by justin