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
Threaded Mode
Using entity:setSubMaterial()
24-05-2015, 06:18 PM,
#1
Alanzote Offline
TSCM Member
***
Posts: 123
Threads: 40
Joined: Oct 2013
Using entity:setSubMaterial()
How do I use the entityConfusedetSubMaterial() function in starfall?

[Image: stargate_kawoosh_animation_HD_by_SergeyDruid.gif] [Image: kecepatan-cahaya-light-speed-warp-drive2....gif?w=640]
Find
Reply
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
24-05-2015, 06:29 PM, (This post was last modified: 24-05-2015, 06:30 PM by Alanzote.)
#3
Alanzote Offline
TSCM Member
***
Posts: 123
Threads: 40
Joined: Oct 2013
RE: Using entity:setSubMaterial()
Thanks Person!

[Image: stargate_kawoosh_animation_HD_by_SergeyDruid.gif] [Image: kecepatan-cahaya-light-speed-warp-drive2....gif?w=640]
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


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

Powered By MyBB, © 2002-2026 MyBB Group.