Moderator elections are being held. See Valve Developer Community:Moderator elections for more details.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.
ent_create
ent_create is a console command available in all
Source games.
It creates an entity of the given type where the player is looking.
Contents
Usage
Syntax: ent_create <entity name> <param 1 name> <param 1> <param 2 name> <param 2>...<param N name> <param N>
Examples
ent_create player_speedmod; ent_fire player_speedmod ModifySpeed 3- A handy way to make the player faster ingame, without needing to recompile the map or using
host_timescale.
- A handy way to make the player faster ingame, without needing to recompile the map or using
ent_create env_explosion targetname newexp iMagnitude 100; ent_fire newexp explode- Spawns an explosion where the player looks and instantly triggers it too.
ent_create prop_dynamic model models/editor/playerstart.mdl modelscale 2- Example of creating a prop. Alternatively,
prop_dynamic_createcan be used.
- Example of creating a prop. Alternatively,
ent_create player_weaponstrip targetname pacifism; ent_fire pacifism strip- A handy way to clear weapons ingame.
Flags
You can also pass flags to created entities like this:
Syntax: ent_create <entity name> spawnflags <combo>
ent_create point_viewcontrol spawnflags 264 angles "0 0 90"- creates a 90 flipped
point_viewcontrolthat does not start at/follow the player and has an infinite hold time. For an understanding of angles, seegetpos.
- creates a 90 flipped
spawnflags value.See also
prop_dynamic_create, a command to spawn a model ingame.give, a command likeent_fire, but things spawn beneath the player's feet.