Hey all,
Just wondering if you can point me in the right direction to identify a bodygroup so a material could be set to it. What I have so far is:
[lua]
function ENT:Use( activator, ent )
local fault = activator:GetKeyValues( "SetBodyGroup", "1")
fault:SetMaterial("Models/Testing/Test/barrel_top_new")
end
[/lua]
If anyone can point me in the right direction it will be much appreciated
Thanks
Or if anyone can help me with this it will be just as good:
[lua]
function ENT:Use( activator, ent )
self.Entity:Remove()
if ( activator:IsPlayer() ) then
local fault = activator:GetMaterial("models/Humans/Testing/Tshirt")
fault:SetMaterial("models/Humans/Testing/Test/Tshirt2")
end
end
[/lua]
Basically I want :
[code]
models/Humans/Testing/Test/Tshirt2
[/code]
To overwrite :
[code]
models/Humans/Testing/Tshirt
[/code]
Material on the player model that uses the Entity.
Bump, Still in need for a answer
Sorry, you need to Log In to post a reply to this thread.