RaweTrip
  • Welcome
  • Official Discord
  • Useful information
    • πŸ”ŒFor beginners
    • β™ŸοΈCommon knowledge
    • πŸ“šExamples
      • βš™οΈTab system
      • βš™οΈUI Interaction
      • βš™οΈClantag
      • βš™οΈWireframe smoke
  • documentation
    • ⛓️Common
      • πŸ“žCallbacks list
    • βš™οΈVariables
      • πŸ‘€esp
      • πŸ“œplist
      • πŸ”«weapon
      • ⚑vector
      • 🎨color
      • πŸŽ“cheat
      • πŸ’»ui
      • πŸ™οΈrender
      • πŸšΆβ€β™‚οΈentity
      • 🌎globalvars
      • πŸ› οΈengine
      • πŸ”©utils
      • πŸ–₯️console
      • πŸ”‘base64
      • πŸ“ bit
      • πŸ—ƒοΈfile
      • πŸ“Άhttp
      • βœ‰οΈchat
      • 〽️animate
      • 🧱materials
      • πŸ”§steam
      • ✈️trace
      • πŸ”—interfaces
        • πŸ’‘ieffects
        • 🧬precache
        • πŸ’³model_info
    • πŸ”’Enumerations
      • 🎞️enum_frames
Powered by GitBook
On this page
  • Functions:
  • get_material_by_name
  • get_first_material
  • get_next_material
  • get_material
  • get_material_name
  • set_material_var_flag
  • color_modulate
  • set_alpha
  1. documentation
  2. Variables

materials

Functions:

get_material_by_name

materials.get_material_by_name(path: string): material

Name
Type
Description

path

string

Directory to the specified material

Returns the material object in the specified path.

get_first_material

materials.get_first_material(): material

Returns the first material.

get_next_material

materials.get_next_material(mat: material): material

Name
Type
Description

mat

material

-

Returns the next material.

get_material

materials.get_material(mat: material): material

Name
Type
Description

mat

material

-

Returns the material.

get_material_name

materials.get_material_name(mat: material): string

Name
Type
Description

mat

material

-

Returns the name of the material.

set_material_var_flag

materials.set_material_var_flag(mat: material, flag: number, state: boolean)

Name
Type
Description

mat

material

-

flag

number

-

state

boolean

-

Sets the value of the material var flag.

color_modulate

materials.color_modulate(mat: material, clr: color)

Name
Type
Description

mat

material

-

clr

color

-

Sets the material color modulation value.

set_alpha

materials.set_alpha(mat: material, alpha: number)

Name
Type
Description

mat

material

-

alpha

number

-

Sets the material alpha modulation value.

PreviousanimateNextsteam

Last updated 2 years ago

βš™οΈ
🧱