AggrorJorn Posted February 28, 2010 Share Posted February 28, 2010 I trying to paint a material on a model, but I can't figure out the usage of the command. require("scripts/class") local class=CreateClass(...) function class:CreateObject(model) local object=self.super:CreateObject(model) texture1 = LoadMaterial("abstract::texture1.mat") object.model:PaintEntity((1),texture1) --object.model:PaintEntity(texture1) --object.model:PaintEntity(texture1,1) end Quote Link to comment Share on other sites More sharing options...
Marleys Ghost Posted February 28, 2010 Share Posted February 28, 2010 Have you tried: entity:Paint( material, recursive ) 1 Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 28, 2010 Author Share Posted February 28, 2010 Yips thats the one I need. Did you find that in the wiki? Quote Link to comment Share on other sites More sharing options...
Marleys Ghost Posted February 28, 2010 Share Posted February 28, 2010 Yep Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 28, 2010 Author Share Posted February 28, 2010 I see now. i didn't look at the entity section. only at the texture and material section. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.