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
No edit summary
Zehra (talk | contribs)
improved display of content
 
(8 intermediate revisions by 7 users not shown)
Line 1: Line 1:
A GroundMaterial is used to make the texture of the ground anything u would like it to be.
GroundMaterial is an option for a [[Material]] that allows you to set the ground texture.


==Code==
==Code==
To put a GroundMaterial in your map, first it must be defined:
To utilize GroundMaterial in your map, first it must be defined:
{|
{|
|
|
  material
  material
   name GroundMaterial
   name GroundMaterial
   texture file name
   texture ''<fileName or URL>''
  end
  end
|}
|}
valid parameters for a Material are:
Valid parameters for groundmaterial are:
<properties>
{|{{Prettytable}}
name=name used to define that its a GroundMaterial
|-
texture=set the texture (must be .png but don't include the extension)
| {{Hl3}} |'''Parameter'''
| {{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

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