adding second model to a sent?

is this possible? i want to add another prop to my sent, so they both be parented, where do i start?


(User was banned for this post ("Bump" - mahalis))

[lua]self.Entity2 = ents.Create(“prop_physics”)
– do shit here

[lua]local second = ents.Create(“prop_physics”); – Create a new prop_physics
second:SetModel(“some/path/here.mdl”); – Set the model
second:SetPos(self.Entity:GetPos() + Vector(0, 0, 32)); – Set the position
second:Spawn(); – Spawn it

second:SetParent(self.Entity); – Parent it to us[/lua]

Put that in your ENT:Initialize() function. You can use the same method to create multiple props as well.

You could also perhaps replace parenting with welding, if you want it to be moved around properly.


Fff, got ninja’d