How do you make prefabs?

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Sir_Ryan
Corporal
Posts: 28
Joined: Sat Jul 05, 2003 11:28 pm
Location: United States
Contact:

How do you make prefabs?

Post by Sir_Ryan »

To answer your question; YES i am a newbie. I just want to know: how do you make prefabs?

Thanks!


:wink:

Sir_Ryan
<><
Sir_Ryan
SirRyan.Pure-Fun.Com
[It's the Cheesiest]
grb
Warrant Officer
Posts: 136
Joined: Fri Jun 06, 2003 12:22 am
Location: USA Philadelphia

Here is a simple example...

Post by grb »

1). start a new map.
2) create some objects, perhaps a few offset walls with a some wooden
planks on the top with a rounded sandbag on top of the planks....whatever.
3) SELECT all the objects you created.
4) SAVE AS PREFAB. .......YOu may want to create a directory called Prefab under ...\main\maps where you store all your prefabs.

Then go to a map you are working on.
1) LOAD PREFAB
Then after the prefab is loaded into your map....it will show up as all in RED, relocate it to where you want it placed in your map.

NOW. With a little insite, for many prefabs .... lets say you build up a building as a prefab, while you edit the prefab, place the building in this case, to the coordinates where you would like to see it in your mission map. Also you can while you build the prefab.....rotate all the parts as one selection (select every part of the building, for instance, then simply rotate it as you would like to see it in the mission map), then MAKING SURE EVERTHING IS SELECTED, SAVE THE PREFAB TO whatever file name you choose.
Then when you are in the mission map you are designing, you simply LOAD the prefab in question and bingo, it is placed in your mission map exactly where you would like it to be.
Now, lets say you want to make another building but you don't want it to have brick sides, but you would like the outer walls to be some stone texture.
OK, starting a new map..........LOAD the original prefab building.
Then change the brick walls to stone walls, then making sure again...you have everything selected, move it in a new position, so that it may line up in the mission map next to the last building, then making sure everything is selected save the new version pre-fab to a new file name under your perfab dir.
Then obviously, when you load your mission map, then all you have to do is load in the new prefab file. Bingo! You have another building with a different look to it next to the original building.

Hope this helps give you an idea how to work with prefabs. WARNING, as you will see througout this forum, many of us have be selecting stuff out of the stock maps, that we de-compile, and then save the selected stuff to a prefab file, then load it into our mission maps, and sh*t, discover that we have loaded all kinds are garbage into our mission map that can often
ruin it completely for most folks. The brave few ....spend hours trying to elimnate all the garbage that gets inserted into their maps..........So be aware that this is the case.


cheers :wink:
grb
Post Reply