can you spawn entities in a lua file?

can you?, i mean like putting the cordinates in it and the view angle.

//Thanks, i know my english is bad :frowning:



thanks, but i cant find the cordinates thing :frowning:


entity:SetPos( Vector(11.1, 1.1, 1.1)
entity:SetAngles(Angle(90, 0, 0))

i found this

This is how you would spawn a simple prop at the world spawn:

[lua]local ent = ents.Create( “prop_physics” )
ent:SetPos( Vector( 0, 0, 0 ) )
ent:SetAngles( Angle( 0, 0, 0 ) )

im going to try that.


i got it to work now!, thanks guys.