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

Register

Team Spartan Cookies & Milk Forums Feedback Suggestions and improvements v
« Previous 1 … 18 19 20 21 22 … 36 Next »
E2 Sub Color
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
E2 Sub Color
23-07-2018, 06:20 PM,
#1
Ethan Vondwarf Offline
I will go down with Destiny.
****
Posts: 305
Threads: 95
Joined: Mar 2015
E2 Sub Color
Is it possible to add a sub color function to E2?
if so please add it

'You are always moving, even when your standing still.' Me - 2016
Find
Reply
30-07-2018, 07:50 AM,
#2
frdhog Offline
Hasn't finished a ship in 2 years
****
Posts: 72
Threads: 31
Joined: Feb 2016
RE: E2 Sub Color
entityConfusedetSubMaterial(materialIndex, override)
Bearing in mind that textureIndex is an integer and that override is a string for the new material.
You'll need manually test to find the material index if you are just after a single prop. Otherwise you might need to create a function to search through the materials to find the right one to override.
I don't believe there is much if any documentation of the function so try examining Pho's PCPU Lib file, I've personally learnt a lot from it.
Good luck
Website Find
Reply
30-07-2018, 12:39 PM, (This post was last modified: 30-07-2018, 12:39 PM by Ethan Vondwarf. Edited 1 time in total.)
#3
Ethan Vondwarf Offline
I will go down with Destiny.
****
Posts: 305
Threads: 95
Joined: Mar 2015
RE: E2 Sub Color
But it's sub color i want
It's possible via the Smart Materials tool
but not on Expression 2

'You are always moving, even when your standing still.' Me - 2016
Find
Reply
30-07-2018, 12:53 PM,
#4
frdhog Offline
Hasn't finished a ship in 2 years
****
Posts: 72
Threads: 31
Joined: Feb 2016
RE: E2 Sub Color
Sorry, I misunderstood the question but from further checking, it does not exist. I can't find the source of the submaterial tool but I expect it uses a similar method to the DarkRP arrest stick:
https://github.com/FPtje/DarkRP/blob/mas...ed.lua#L43
However, I'd like to draw attention to the fact that Starfall has neither submaterial or subcolor functions as far as I can tell.
Website Find
Reply
30-07-2018, 04:25 PM,
#5
Veegi Offline
Marker Translator
Posts: 90
Threads: 6
Joined: Sep 2013
RE: E2 Sub Color
Quote:However, I'd like to draw attention to the fact that Starfall has neither submaterial or subcolor functions as far as I can tell.
Code:
entity:setSubMaterial( index, material ) entity:setSubMaterialColor( index, colour )
Both are present in the documentation.

ohai
Find
Reply
30-07-2018, 08:54 PM,
#6
Ethan Vondwarf Offline
I will go down with Destiny.
****
Posts: 305
Threads: 95
Joined: Mar 2015
RE: E2 Sub Color
WAT!?!? IT EXISTED?!?!

'You are always moving, even when your standing still.' Me - 2016
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.