How to use Get pixels

Hi, I am trying to apply a texture to an area i hit with a ‘shot’. The basic idea is adding a bullet hole to a wall where it gets shot. I cant seem to find code reference for getting the pixel array of the hit objects texture.

I am currently parenting an object to the object that is hit, and pass vars from my shot to a custom function inside my parented object that will handle the get pixels, set pixels stuff(as well as fading, removing, and resetting the texture).

Ive been at it for quite a while now and have yielded no results. I know i am going to run into other problems such as curved areas or other strange geometry, but ill leave that be until i can get a basic idea of how to use get pixels.

Thanks in advance

Consider just instantiating a small quad polygon with the bullet hole texture at the point where the gunshot hit. You can get the normal from the ‘hit’ and orient it appropriately.