• Prop spawn at server start.
    5 replies, posted
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.
[url]http://www.facepunch.com/showthread.php?t=735138[/url]
[QUOTE=DiscoBiscut;16657884][url]http://www.facepunch.com/showthread.php?t=735138[/url][/QUOTE] thx.. is there one for deleting props as well? cuz evocity has some useless props.
-snip-
[QUOTE=Jamie932;16665463][lua]function RemoveItems() for k,v in pairs(ents.GetAll()) do if v == ("prop_dynamic" or "prop_physics" or "prop_static") then v:Remove() end end end hook.Add( "InitPostEntity", "RemoveItems", RemoveItems );[/lua] Try that.[/QUOTE] 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 ent:Remove() end end end 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.
Sorry, you need to Log In to post a reply to this thread.