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?

someone?


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

[lua]self.Entity2 = ents.Create(“prop_physics”)
– do shit here
self.Entity2:Spawn()
self.Entity2:SetParent(self.Entity)
[/lua]

[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.

[editline]05:01PM[/editline]

Fff, got ninja’d