Difference between revisions of "ScriptChangeSideTexture"

From Amulets & Armor Wiki
Jump to: navigation, search
(Created page with "'''ChangeSideTexture( [SideNum], [Texture Name])''' This command changes the specified side to the texture name provided. The value for SideNum is the side value, not the lin...")
 
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
This command changes the specified side to the texture name provided. The value for SideNum is the side value, not the linedef number. The side value can be seen in the expanded information console on the bottom of the screen in Doom Builder 2 when a linedef is selected with the linedef tool.
 
This command changes the specified side to the texture name provided. The value for SideNum is the side value, not the linedef number. The side value can be seen in the expanded information console on the bottom of the screen in Doom Builder 2 when a linedef is selected with the linedef tool.
 +
 +
===Arguments===
 +
 +
'''SideNum''' - Sidedef number used to apply the texture. Visible on expanded console in Doom Builder 2.
 +
 +
'''Texture Name''' - Name of texture in PICS.Res. (WAD image entries do not have file extensions). Can also be found in the A&A Assets folder in the Doom Builder Editor files.
  
 
===Code Example===
 
===Code Example===
Line 10: Line 16:
 
   End()
 
   End()
 
</nowiki>
 
</nowiki>
 +
 +
===Notes===
 +
It's recommended to not script this function until the absolute last step of level editing. For troubleshooting see [[Incorrect_Side_Numbers | Incorrect Side Numbers]].
 +
 +
----
 +
Back to [[Scripting]] Main Page

Latest revision as of 21:26, 17 October 2016

ChangeSideTexture( [SideNum], [Texture Name])

This command changes the specified side to the texture name provided. The value for SideNum is the side value, not the linedef number. The side value can be seen in the expanded information console on the bottom of the screen in Doom Builder 2 when a linedef is selected with the linedef tool.

Arguments

SideNum - Sidedef number used to apply the texture. Visible on expanded console in Doom Builder 2.

Texture Name - Name of texture in PICS.Res. (WAD image entries do not have file extensions). Can also be found in the A&A Assets folder in the Doom Builder Editor files.

Code Example

40:  // open exit door with switch
   ChangeSideTexture(1372,"SWIT1U");
   SlideCeilingNice(112, 0, 120, 50, -1);
   End()

Notes

It's recommended to not script this function until the absolute last step of level editing. For troubleshooting see Incorrect Side Numbers.


Back to Scripting Main Page