This is a way of making a point cloud affect a mesh.
This has some useful basic stuff about finding a value in an array and extracting it for usage.
Not sure what happened to my cursor. Im using new capture software. Hopefully you can work out what I'm referring to.