This command spawns a specified entity, in an optional state (state as in the physical state of the entity, not province). The entity will be spawned at your cursor's position.
The syntax for the spawnentity command is as follows:
spawnentity [entity id] [state id]
This command has the following arguments:
|Entity ID||The name/ID of the entity you wish to spawn.|
|State ID||The state ID of the state you wish to spawn the entity in.|
Find below working examples of the spawnentity command.
The above console command would spawn the test_object_entity entity under your cursor.