User Tools

Site Tools


set_terrain_types

Differences

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

Link to this comparison view

Next revision
Previous revision
set_terrain_types [2024/02/06 19:05] – created justinset_terrain_types [2024/02/22 21:11] (current) justin
Line 2: Line 2:
 ---- ----
 (WIP) (WIP)
 +
 +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:====
 <code python> <code python>
-set_terrain_types()+set_terrain_types(entity, terrain_mode, terrain_types)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-| | | | |+|entity| |[[Entity]]|Yes| 
 +|terrain_mode| |[[Terrain Mode]]|Yes| 
 +|terrain_types| |[[Array]]|No|
  
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-set_terrain_types();+
 </code> </code>
 //Results:// //Results://
set_terrain_types.1707275133.txt.gz · Last modified: 2024/02/06 19:05 by justin