This wiki is archived and useful information is being migrated to the main bzflag.org website

Difference between revisions of "GroundMaterial"

From BZFlagWiki
Jump to: navigation, search
m
(improved display of content)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
GroundMaterial is an option for a [[Material]] that allows you to set the ground texture to any local, or hosted texture.
+
GroundMaterial is an option for a [[Material]] that allows you to set the ground texture.
  
 
==Code==
 
==Code==
Line 10: Line 10:
 
  end
 
  end
 
|}
 
|}
valid parameters are:
+
Valid parameters for groundmaterial are:
<properties>
+
{|{{Prettytable}}
name=name used to reference the GroundMaterial
+
|-
texture=set the texture file, either a filename (without .png extension) or URL eg. <nowiki>http://server.name/path/to/file</nowiki>
+
| {{Hl3}} |'''Parameter'''
</properties>
+
| {{Hl3}} |'''Description'''
 +
|-
 +
| '''name''' || name GroundMaterial must be used as name for to work.
 +
|-
 +
| '''texture''' || set the texture file, either a filename (without .png extension) or URL eg. <nowiki>http://server.name/path/to/file</nowiki>
 +
|}
 +
 
 +
[[Category:Map Making]]
 +
[[Category:Map Objects]]

Latest revision as of 17:58, 31 January 2017

GroundMaterial is an option for a Material that allows you to set the ground texture.

Code[edit]

To utilize GroundMaterial in your map, first it must be defined:

material
 name GroundMaterial
 texture <fileName or URL>
end

Valid parameters for groundmaterial are:

Parameter Description
name name GroundMaterial must be used as name for to work.
texture set the texture file, either a filename (without .png extension) or URL eg. http://server.name/path/to/file