Hey, I recently have started making a gamemode, and I would like to have some props spawned automatically with LUA.
So, I used this code:
barrel=ents.Create("prop_physics") barrel:SetModel("models/props_c17/oildrum001.mdl") barrel:SetPos(Vector(0,0,0)) barrel:Spawn()
And changed it to my liking:
spawnpoint1=ents.Create("prop_physics") spawnpoint1:SetModel("models/props_borealis/bluebarrel001.mdl") spawnpoint1:SetPos(Vector(1194.779907,-2243.785889,-11020.602539)) spawnpoint1:Spawn()
But the barrel is spawning in mid air, no gravity and is no-collided ?
Any help would be nice,