• Simple trace/Ent.Create
    1 replies, posted
I restarted some lua coding and I'm already in trouble, I tried looking at wiki but ents.Create doesn't have much documentation on how to create a physics ent. So can anyone help me with a script that spawns lets say a models/props_junk/wood_crate001a.mdl in front of me.
You need to spawn a prop_physics and then set its model. [lua]local ent = ents.Create("prop_physics") ent:SetModel("models/props_junk/wood_crate001a.mdl") -- Set position etc ent:Spawn()[/lua]
Sorry, you need to Log In to post a reply to this thread.