So im trying to make gta-like blood pool using decals.
util.Decal wont spawn anything using following code, util.DecalEx wont resize it as well.
What could be wrong? Any help is appreciated
Heres some code
Tried to create 256 materials with different size (i know its stupid but idk what should i do)
[CODE]
for i = 1, 256 do
local tbl = {
["$basetexture"] = "decals/blood2",
["$decal"] = 1,
["$translucent"] = 1,
["$decalscale"] = i*0.1,
["$modelmaterial"] = "decals/blood_dead_model"
}
local mat = CreateMaterial("bloodpool"..i, "LightmappedGeneric", tbl)
game.AddDecal( "pool"..i, "bloodpool"..i )
end
[/CODE]
Sorry, you need to Log In to post a reply to this thread.