Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 13 14 15 16 17 18 Next »
Using entity:setSubMaterial()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Using entity:setSubMaterial()
24-05-2015, 06:27 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Using entity:setSubMaterial()
Find the material you want to replace from
--This is a table of all materials the entity has.
local Materials = Ent:getMaterials()
Then set the sub material by taking the index - 1, e.g.
--Replace the first sub-material with cmats/light
EntConfusedetSubMaterial( 0, "cmats/light" )
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Using entity:setSubMaterial() - by Alanzote - 24-05-2015, 06:18 PM
RE: Using entity:setSubMaterial() - by Person8880 - 24-05-2015, 06:27 PM
RE: Using entity:setSubMaterial() - by Alanzote - 24-05-2015, 06:29 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.