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

Register

Team Spartan Cookies & Milk Forums Garry's Mod General v
« Previous 1 2 3 4 5 6 … 9 Next »
getSubMaterial(index) problems
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
getSubMaterial(index) problems
13-01-2019, 12:19 AM,
#1
The17thDoctor Offline
TSCM Average Enjoyer
****
Posts: 1,100
Threads: 249
Joined: Oct 2015
getSubMaterial(index) problems
I've been confronted to a problem where
print(ents.self():isWeldedTo():getSubMaterial(1))
would not print anything, either its my fault either there is a problem somewhere.

The17thDoctor: Server take me to the most handsome person
srcds_linux: I cant send people to themselves...
Website Find
Reply
13-01-2019, 11:03 AM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: getSubMaterial(index) problems
It returns the sub-material override, so if you haven't set anything for that index it returns an empty string as it's not overridden. If you want the original material, use Entity:getMaterials().
Find
Reply
« Next Oldest | Next Newest »


  • 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.