1. Vector. Where the ray should start at.
2. Vector. This is just expressing a relative coordinate to the starting position for the ray to stop at. For instance, if the first argument was (5,5) and this was (10,15), the ray would stop at (15,20).
3. Every GetsHitByMOs MO has an ID. No MO has an ID of 255, so set it to that.
4. Int. Set it to 0 (air) unless you have something else to ignore.
5. Boolean (in Lua, true or false, NOT 1 or 0). If this is true, the ray will keep going through all terrain. If it's false, it will only go through whatever material you specified in 4.
The wiki doesn't tell you the types, but it's not hard to find what types are needed. Just put the function into the console with no arguments and the console will spit back out what is expected.
Right now, you can't check ammo count, but you
can check if it's full.