Prefabs

ranger 63
25+ Posts
25+ Posts
Posts: 38
Joined: Thu Jun 30, 2011 1:09 am

Prefabs

Post by ranger 63 »

How do I open a prefab in hammer?
jimmythecanadian
50+ Posts
50+ Posts
Posts: 69
Joined: Wed May 18, 2011 11:23 pm

Re: Prefabs

Post by jimmythecanadian »

http://www.gamebanana.com/tuts/3762
Extract the prefab file with a unzip program. (I use winrar.)

Open the extracted folder and mark the .vmf file, then hold ctrl and press c (alternately right click the file and choose copy).

Go to your: accountname\sourcesdk\bin\ep1\bin\prefabs (usual path: C:\Program Files\Valve\Steam\SteamApps\accountname\sourcesdk\bin\ep1\bin\prefabs *see screenshot) and press ctrl+v (or right click and choose paste).

Now it's done, the next time you open Hammer it will be there.

To add a prefab to your existing file, just choose the entity tool and at the bottom right of hammer where it says categories: choose prefabs instead of entities and at object you have all your prefabs.
ranger 63
25+ Posts
25+ Posts
Posts: 38
Joined: Thu Jun 30, 2011 1:09 am

Re: Prefabs

Post by ranger 63 »

I just hit new in hammer and selected the prefab opened. And copied. I meant a way to open in hammer
jimmythecanadian
50+ Posts
50+ Posts
Posts: 69
Joined: Wed May 18, 2011 11:23 pm

Re: Prefabs

Post by jimmythecanadian »

I'm unsure of what you're asking, I'd like to help but you have to clarify what you're trying to do.
ranger 63
25+ Posts
25+ Posts
Posts: 38
Joined: Thu Jun 30, 2011 1:09 am

Re: Prefabs

Post by ranger 63 »

Ok. I can tell. I am trying to figure out how to open a prefab in my map. Without having to open anything else.
jimmythecanadian
50+ Posts
50+ Posts
Posts: 69
Joined: Wed May 18, 2011 11:23 pm

Re: Prefabs

Post by jimmythecanadian »

You didn't give me much but I get a feeling you're trying to put the prefab into your actual map. In that case read what I already posted above, it explains how to do that.

If that's not what you are doing then try rephrase what you're saying using verbs other than "open" and be detailed.
ranger 63
25+ Posts
25+ Posts
Posts: 38
Joined: Thu Jun 30, 2011 1:09 am

Re: Prefabs

Post by ranger 63 »

Ok. Obviously this is hard to explain. I would like o load my map (deathrun_bunker). Click a button or something and load the prefab will load directly into the map.... Does that help?
User avatar
shadowslayer
1000+ Posts
1000+ Posts
Posts: 1280
Joined: Fri Sep 03, 2010 8:51 pm

Re: Prefabs

Post by shadowslayer »

actually if its the case of your ladder prefab just click the entity tool and then look to the right of the map screen, where it says entitys there should be a prefabs option next to it or somethin, then look for anything with the word ladder in it
Spoiler
Show
Saying "Your lucky i'm peaceful" is pretty much like saying "when i grow up i wanna be an arms race!"-HL2shadowslayer, Area 51 Minecraft
Imagethe only reason you shouldnt mess with me
jimmythecanadian
50+ Posts
50+ Posts
Posts: 69
Joined: Wed May 18, 2011 11:23 pm

Re: Prefabs

Post by jimmythecanadian »

Well in that case do exactly what it says in my first reply.
To add a prefab to your existing file, just choose the entity tool and at the bottom right of hammer where it says categories: choose prefabs instead of entities and at object you have all your prefabs.
By "your existing file" it means your already open map.
ranger 63
25+ Posts
25+ Posts
Posts: 38
Joined: Thu Jun 30, 2011 1:09 am

Re: Prefabs

Post by ranger 63 »

Wow. I didn't even know that there. Thankyou. My comment on replies stands firm