User Tools

Site Tools


set_terrain_types

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
set_terrain_types [2024/02/08 20:37] justinset_terrain_types [2024/02/22 21:11] (current) justin
Line 3: Line 3:
 (WIP) (WIP)
  
-Modifies which [[terrain types]] that a [[character]], [[vehicles|vehicle]], or [[pushing|pushable object]] is allowed to traverse.+Modifies the [[terrain types]] that a [[character]], [[vehicles|vehicle]], or [[pushing|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 [[tile|tiles]] having a [[terrain_types|terrain type]] of "water").
  
 ====Signature:==== ====Signature:====
Line 17: Line 17:
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-set_terrain_types();+
 </code> </code>
 //Results:// //Results://
set_terrain_types.1707453433.txt.gz · Last modified: 2024/02/08 20:37 by justin