• Problem with LUA spawned entities
    2 replies, posted
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: [CODE]barrel=ents.Create("prop_physics") barrel:SetModel("models/props_c17/oildrum001.mdl") barrel:SetPos(Vector(0,0,0)) barrel:Spawn()[/CODE] And changed it to my liking: [CODE]spawnpoint1=ents.Create("prop_physics") spawnpoint1:SetModel("models/props_borealis/bluebarrel001.mdl") spawnpoint1:SetPos(Vector(1194.779907,-2243.785889,-11020.602539)) spawnpoint1:Spawn()[/CODE] But the barrel is spawning in mid air, no gravity and is no-collided ? ScreenShot: [url]https://dl.dropboxusercontent.com/u/88717145/Public%20Photos/2013-07-05_00007.jpg[/url] Any help would be nice, Thanks
Same problem.
Sounds like you might be running this clientside.
Sorry, you need to Log In to post a reply to this thread.