simulating sensor and getting data from the scene

hi i’ very new to the unreal engine I want to simulate a lidar sensor and get the lidar data in point cloud(.pcd) format
please, somebody, suggest on how can I do this with c++ or blueprint visual scripting