passing entity as ptr in spawn_character