Prop spawn at server start.

Hey all.

Would anyone know how to get props spawned at the server start on the map? For example, I want a prop, blocking one area of the map, without editing the map.

thx… is there one for deleting props as well? cuz evocity has some useless props.


Or, if you want something that works, try this:
[lua]function RemoveItems()
for _,ent in ipairs(ents.GetAll()) do
if ent:GetClass():find"prop_physics" then
hook.Add( “InitPostEntity”, “Remove All Physics Props”, RemoveItems )[/lua]
Just so you know in future, prop_statics are the unmoving props the map is made out of and are baked in to the map, prop_dynamics tend to be there for a good reason, and quite a few gmod maps use prop_physics_multiplayer rather than prop_physics.

Heh. Sorry. Im sleepy today.