dobrograd-13-06-2022/octolib/addon/lua/entities/ent_dbg_dummy.lua

24 lines
462 B
Lua
Raw Normal View History

2023-11-16 15:01:19 +05:00
AddCSLuaFile()
ENT.Type = 'anim'
ENT.Base = 'base_anim'
ENT.PrintName = 'Болванка'
ENT.Category = L.dobrograd
ENT.Spawnable = false
ENT.AdminOnly = false
function ENT:Initialize()
self:PhysicsInit(SOLID_NONE)
self:SetMoveType(MOVETYPE_NONE)
end
if CLIENT then
function octolib.createDummy(mdl, rendergroup)
local ent = ents.CreateClientside('ent_dbg_dummy')
ent.RenderGroup = rendergroup
ent:SetModel(mdl)
ent:Spawn()
return ent
end
end