Adding Point Entities: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Reformated the entire article.)
Line 1: Line 1:
[[Category:Level Design Tutorials]]
[[Category:Level Design Tutorials]]
{{first room menu}}
{{first room menu}}
Next, we'll insert some [[entities]].
Next, we'll insert some [[entities]] into the map.


To place an entity, first pick the [[Entity Tool]] from the icon bar on the left side of the Hammer window.
[[Image:hammer_pickentity1.jpg|thumb|left|200px|Switch to the [[Entity Tool]].]]
Entities are placed using the [[Entity Tool]]. Select it from the left side icon bar. (It's the white lightbulb.)
[[Image:hammer_pickentity1.jpg|frame|left|Switch to the [[Entity Tool]].]]<br clear="left" />


Next, we need to pick which [[entity]] to insert. The '''Object Toolbar''' by default in the lower right corner of the Hammer window has a [[List of entities|list of possible entities]].
<br clear="both">


Pick the [[info_player_deathmatch]] entity from the drop-down list, as shown in this image.  (If the [[info_player_deathmatch]] does not appear in the list, you need to add the '''hl2mp.fgd''' game configuration file.  See [[Hammer_Game_Configurations]] for help.)
[[Image:hammer_pickIPD.jpg |thumb|right|400px|Pick the appropriate entity from the drop-down list of entities.]]


Use the [[info_player_start]] entity in single player levels.
Next we pick which entity to insert. There is a [[List of entities|list of possible entities]] in the '''Object Toolbar''' (by default in the lower right corner of the Hammer window).


[[Image:hammer_pickIPD.jpg |frame|left|Pick the [[info_player_deathmatch]] entity from the drop-down list of entities.]]<br clear="left" />
The first entity that we will pick is where the player will spawn when he enters the map. What entity to choose from the list depends on what game you are creating this map for.


Now we need to place the entity in the map. In the '''3D View''', click the floor of the room, like in the image here.
* If you are creating a map for [[Half-Life 2: Deathmatch]], the game will spawn the player at the [[info_player_deathmatch]] entity. (If the [[info_player_deathmatch]] does not appear in the list, you need to add the '''hl2mp.fgd''' game configuration file.  See [[Hammer_Game_Configurations]] for help.)
* If you are creating a ''single player'' map for [[Half-Life 2]], the game will spawn the player at the [[info_player_start]] entity.


The [[info_player_deathmatch]] entity will be placed at the spot you click.
Choose the appropriate entity from the drop-down list.


Players that join the map will spawn at the location of the [[info_player_deathmatch]] entity.
<br clear="both">


[[Image:hammer_placeentity.jpg|frame|left|Left-click on the floor in the 3D View to add the [[info_player_deathmatch]] entity.]]<br clear="left" />
[[Image:hammer_placeentity.jpg|thumb|right|400px|Left-click on the floor in the 3D View to add the [[info_player_deathmatch]] entity.]]


Next, pick the [[weapon_357]] entity from the entity list in the '''Object Toolbar'''.
Next we'll place this entity in the map. When placing entities aligned with a surface, you can do this simply by clicking where on the surface you want it in the '''3D View''', so click somewhere on the floor of the room, like in the image here, and the entity will be placed at the spot you click.


The [[weapon_357]] entity will spawn the [[weapon 357|.357 magnum weapon]] at that location in the map.
<br clear="both">
[[Image:hammer_pick357.jpg|frame|left|Pick the [[weapon_357]] from the entity list.]]<br clear="left" />


Click in the '''3D View''' to place the [[weapon_357]], just like you did with the [[info_player_deathmatch]].
[[Image:hammer_pick357.jpg|thumb|left|200px|Pick the [[weapon_357]] from the entity list.]]


[[Image:hammer_place357.jpg|frame|left|Place the [[weapon_357]] on the floor.]]<br clear="left" />
[[Image:hammer_place357.jpg|thumb|right|400px|Place the [[weapon_357]] on the floor.]]


pick the [[item_ammo_357]] entity from the entity list in the '''Object Toolbar'''.
Next we will place a weapon.


This entity is a [[item ammo 357|box of ammo for the .357]].
Pick the [[weapon_357]] entity from the entity list in the '''Object Toolbar''', as shown to the left.


[[Image:hammer_pick357ammo.jpg|frame|left|Pick the [[item_ammo_357]] from the entity list.]]<br clear="left" />
The [[weapon_357]] entity will spawn the [[weapon 357|.357 magnum revolver]] where it is placed.


Place the [[item_ammo_357]] next to the [[weapon_357]], as shown.
Click in the '''3D View''' to place the [[weapon_357]] entity, just like you did with the player starting point, as shown to the right.


[[Image:hammer_place357ammo.jpg|frame|left|Place the [[item_ammo_357]] next to the [[weapon_357]].]]<br clear="left" />
<br clear="both">
 
[[Image:hammer_pick357ammo.jpg|thumb|left|200px|Pick the [[item_ammo_357]] from the entity list.]]
 
[[Image:hammer_place357ammo.jpg|thumb|right|400px|Place the [[item_ammo_357]] next to the [[weapon_357]].]]
 
Next we will place some ammo.
 
Pick the [[item_ammo_357]] entity from the entity list.
 
This entity is a [[item ammo 357|box of .357 ammo]] for the magnum revolver.
 
Place the [[item_ammo_357]] entity next to the [[weapon_357]], as shown.
 
<br clear="both">


Now onto [[Adding Light]]!
Now onto [[Adding Light]]!

Revision as of 01:51, 16 February 2006

Next, we'll insert some entities into the map.

Switch to the Entity Tool.

Entities are placed using the Entity Tool. Select it from the left side icon bar. (It's the white lightbulb.)


Pick the appropriate entity from the drop-down list of entities.

Next we pick which entity to insert. There is a list of possible entities in the Object Toolbar (by default in the lower right corner of the Hammer window).

The first entity that we will pick is where the player will spawn when he enters the map. What entity to choose from the list depends on what game you are creating this map for.

Choose the appropriate entity from the drop-down list.


Left-click on the floor in the 3D View to add the info_player_deathmatch entity.

Next we'll place this entity in the map. When placing entities aligned with a surface, you can do this simply by clicking where on the surface you want it in the 3D View, so click somewhere on the floor of the room, like in the image here, and the entity will be placed at the spot you click.


Pick the weapon_357 from the entity list.
Place the weapon_357 on the floor.

Next we will place a weapon.

Pick the weapon_357 entity from the entity list in the Object Toolbar, as shown to the left.

The weapon_357 entity will spawn the .357 magnum revolver where it is placed.

Click in the 3D View to place the weapon_357 entity, just like you did with the player starting point, as shown to the right.


Pick the item_ammo_357 from the entity list.
Place the item_ammo_357 next to the weapon_357.

Next we will place some ammo.

Pick the item_ammo_357 entity from the entity list.

This entity is a box of .357 ammo for the magnum revolver.

Place the item_ammo_357 entity next to the weapon_357, as shown.


Now onto Adding Light!