This article's documentation is for anything that uses the Source engine. Click here for more information.

Info player start: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
 
(20 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Tabs|Info player start|goldsrc=1|source=1}}
{{LanguageBar}}
 
{{TabsBar|main=Info player start}}
{{infotable
[[File:info_player_start.png|300px|right|thumb|models/editor/playerstart.mdl]]
|info_player_start
|img=[[File:info_player_start.png|300px]]
|type=e0
|engine={{gldsrc}} {{src}} {{source2}}
|in=0
}}
{{CD|CPointEntity|file1=subs.cpp}}
{{CD|CPointEntity|file1=subs.cpp}}
{{This is a|point|name=info_player_start}} It indicates the position and facing direction at which the player will spawn. If there isn't at least one spawn entity, most mods will usually spawn the player at <code>(0, 0, 0)</code> ([[worldspawn]]).
{{This is a|point entity|name=info_player_start}} It indicates the position and facing direction at which the player will spawn. If there isn't at least one spawn entity, most mods will usually spawn the player at <code>(0, 0, 0)</code> ({{ent|worldspawn}}).
{{note|In multiplayer games, this entity is usually unused. See below for other player spawn entities.}}
{{note|In multiplayer games, this entity is usually unused. See below for other player spawn entities.}}
{{Tip|This entity is scaled to approximately the same height as the player in-game. It can be used as a reference if you forget the actual size of the player.}}
{{Tip|The FGD helper model is approximately the same height as the player in-game. It can be used as a reference if you forget the actual size of the player.}}
 
== Keyvalues ==
== Keyvalues ==
{{KV Angles}}
{{KV Angles|Orientation the player will face when spawned. {{Warning|Setting a Roll value other than 0 will tilt the initial camera angle, and can't be reset by the player without using cheats. {{todotest|Source SDK, {{hl2}}, {{portal2}}}}<br>Roll is forced to 0 in {{gmod|2}}, regardless of setting.}}}}


== Flags ==
== Flags ==
{{fl|1|Master (Has priority if multiple <code>info_player_start</code> entities exist)}}
{{fl|1|Master|Has priority if multiple <code>info_player_start</code> entities exist}}


== See also ==
== See also ==
* {{HL2dm}} [[info_player_combine]], [[info_player_rebel]], [[info_player_deathmatch]]
* {{ent|info_player_deathmatch}}
* {{Bms}} [[info_player_scientist]], [[info_player_marine]]
* {{HL2dm}} {{ent|info_player_rebel}}, {{ent|info_player_combine}}
* {{CSS}}{{csgo}} [[info_player_counterterrorist]], [[info_player_terrorist]]
* {{Bms}} {{ent|info_player_scientist}}, {{ent|info_player_marine}}, {{ent|info_observer_menu}}
* {{DODS}} [[info_player_allies]], [[info_player_axis]]
* {{CSS}}{{csgo}} {{ent|info_player_counterterrorist}}, {{ent|info_player_terrorist}}
* {{Tf2}} [[info_player_teamspawn]]
* {{DODS}} {{ent|info_player_allies}}, {{ent|info_player_axis}}
* {{l4ds}} [[info_survivor_position]]
* {{Tf2}} {{ent|info_player_teamspawn}}
* {{Portal2}} [[info_coop_spawn]]
* {{l4ds}} {{ent|info_survivor_position}}
* {{src}} [[game_player_equip]]
* {{Portal2}} {{ent|info_coop_spawn}}
* {{src}} {{ent|game_player_equip}}


[[Category:Player spawn entities]]
[[Category:Player spawn entities]]

Latest revision as of 18:31, 13 November 2025

English (en)한국어 (ko)中文 (zh)Translate (Translate)
Edit Tabs
models/editor/playerstart.mdl
C++ Class hierarchy
CPointEntity
CBaseEntity
C++ subs.cpp

info_player_start is a point entity available in all Source Source games. It indicates the position and facing direction at which the player will spawn. If there isn't at least one spawn entity, most mods will usually spawn the player at (0, 0, 0) (worldspawn).

Note.pngNote:In multiplayer games, this entity is usually unused. See below for other player spawn entities.
Tip.pngTip:The FGD helper model is approximately the same height as the player in-game. It can be used as a reference if you forget the actual size of the player.

Keyvalues

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
Orientation the player will face when spawned.
Warning.pngWarning:Setting a Roll value other than 0 will tilt the initial camera angle, and can't be reset by the player without using cheats.  (tested in: Source SDK, Half-Life 2, Portal 2)
Roll is forced to 0 in Garry's Mod Garry's Mod, regardless of setting.

Flags

Master : [1]
Has priority if multiple info_player_start entities exist

See also