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:

**[Ents.Create

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Ents.Create)**

**[Entity

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Entity)**

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

[editline]11:40AM[/editline]

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 ) )
ent:Spawn()
ent:Activate()[/lua]

im going to try that.

[editline]12:59PM[/editline]

i got it to work now!, thanks guys.