Hi! I am new here. I have a problem with parent to my entity. I am beginner in lua. I have created a “env_flare” entity i want to parent to my SENT.
local flare = ents.Create("env_flare") flare:SetPos( self.Entity:GetPos() ) flare:SetParent( ent ) flare:Spawn()
local ent = ents.Create("sent_JCO1S10")
this is my code for spawning flare. In code its parented but in-game its is still in one place
PS. Sorry my english isnt well.