Alright i know i know nothing about lua. and this may not be about lua but i don't know.
I Am trying to see how to replace the sanic.png image with an animated VTF file and have it be animated in game. So i can make a glitching animation for my nextbot.
I Already have an animated VTF made. but i don't know what process i need to replace the sanic png with that vtf.
I Believe this is the part of the sanic lua that does the picture. but i could be wrong.
[CODE]local sanicMaterial = Material("sanic/npc_sanic.png", "smooth mips")
local drawOffset = Vector(0, 0, 64)
function ENT:RenderOverride()
render.SetMaterial(sanicMaterial)
render.DrawSprite(self:GetPos() + drawOffset, 128, 128)
end[/CODE]
I have no idea how to do this.
Why don't you just use a default Garrys Mod material?
As I have found some very eye (glitching) models..
I Could look into the Lua of the only known animated SNPC. The Astro Boy nextbot,
Ok, maybe not its a jumbled mess in there.
Sorry, you need to Log In to post a reply to this thread.