Code: Select all
/c local c = game.player.surface.create_entity{name = "character-corpse", position = game.player.character.position, force = game.player.force, inventory_size = 0, player_index = 1}; game.print(c.character_corpse_player_index)
This seems illogical to me.