Sorry no code...
To create a bullet hole, you basically just need to create a plain [
make object plain object number, width, height] and texture it with a bullet hole. Position and rotate this plain where the bullet hole should be, and Woulha - a bullet hole.
Although to make a more fancy looking bullet hole system, you also need to take the following into account:
Make the texture all one colour, say black and a small grey hole in the middle. When loading this texture set the transparancy to black (or the colour of your choosing) this way, when applying the texture to the plain you wont have a square affect.
Create a function that will create the bullet hole, have this function handle how many bullet holes there are. Otherwise if you keep fireing your gun you will end up with 5000 bullet holes and a VERY slow screen FPS. Basically add a timer, if the bullet has been shown for 1 minute, delete/hide the object. If the bullet hole count reachs 15, reposition the first bullet hole rather than creating another.
With the gun offset, can you be more specific?
J
Hello!