This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.

GroundMaterial: Difference between revisions

From BZFlagWiki
Jump to navigation Jump to search
Win Xp (talk | contribs)
No edit summary
Mr Burns (talk | contribs)
mNo edit summary
Line 1: Line 1:
GroundMaterial is a 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 to any local, or hosted texture.


==Code==
==Code==
Line 7: Line 7:
  material
  material
   name GroundMaterial
   name GroundMaterial
   texture ''<file name (can be local (for example, 'caution.png), or hosted, with an http:// path.)>''
   texture ''<fileName or URL>''
  end
  end
|}
|}
valid parameters for a Material are:
valid parameters are:
<properties>
<properties>
name=name used to define that its a GroundMaterial
name=name used to reference the GroundMaterial
texture=set the texture (must be .png but you don't need to include the extension for local textures)
texture=set the texture file, either a filename (without .png extension) or URL eg. <nowiki>http://server.name/path/to/file</nowiki>
</properties>
</properties>

Revision as of 09:22, 13 February 2008

GroundMaterial is an option for a Material that allows you to set the ground texture to any local, or hosted texture.

Code

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

material
 name GroundMaterial
 texture <fileName or URL>
end

valid parameters are: <properties> name=name used to reference the GroundMaterial texture=set the texture file, either a filename (without .png extension) or URL eg. http://server.name/path/to/file </properties>