Jump to content

Material Variation for an entity ?


tipforeveryone
 Share

Recommended Posts

Hello,

 

I have a militarybag.mdl and want to apply 2 different camoflage materials on it

I put 2 instances of that bag into my scene then attach a lua file to one of them, here is my script:

 

function Script:Start()
local mat = Material:Load("testmaterial.mat")
self.entity:SetMaterial(mat)
end

 

The result is both of bags change material. Does it mean I can not change material for each of bag instance ?

Is there anyway to do my need ? smile.png

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...