we have a python based inaccuracy script that changes the accuracy based on active weapon, feet on ground, ducking, and running speed. so im not sure this is exactly what you want because of all the inputs. i’ll make a new one that changes the inaccuracy based on a prop called acc, that way you can deal with it easier. are using a ray sensor type shot system?
well, i didnt really expect this to be such a BIG thing
i just want a simple simple script, where ducking and running dont make a difference
BUT i want the script to be easy to tweak, so that i can change it for different weapons, to have it change within X degrees… aprox 5 to 10
just have a Drot(xyz)
where xyz are random between certain numbers to keep in the 5 to 10 degrees thing.
My way is pretty easy to modify. All you have to do is change the animation a bit as long as it’s in between frames 1 and 5. If you wanted more frames from that you can change that and the int uniform acuator on the gun and it’s empty.
actually i dont want to be too increadibly picky… but i probably should have said this before… sorry
isnt there a way in python to make an obj turn to a certain possition?.. i know u can make an obj go to an EXACT location u want it to, but what about rotation? can u make an obj. turn to an exact rotation?, just make the values of the obj.s Z and X axis random between certain values(also a varable(s) easy to change)
can i not give my obj and ipo and properties and all that other junk
i was wondering if anyone could make JUST a python script work with one controller and one sensor (always) …
if someone could make a script like that, no ipo, no prop, no additional obj.s etc, just an always sensor and a python controller, that would be great
if u guys dont mind… could u guys try to make this script for me?
thanks…
ok…
you cant just rotate an object in python with XYZ, you have to use a “rotation matrix”. it’s quite a tricky deal and frustrates me because its confusing and python cant multiply a set of matrices with normal commands. but because im nice i made a script that just skews the object so it will work with ray sensors (are you using a ray sensor shooting system?). the “ang” property is the maximum angle of inaccuracy. im using a circular random, non a square one.
hey, thanks every1… if anyone else is looking for a good way to create inaccuracy, i would suggest that u try lizard809’s NEW script, its probably the easiest and most effective script to use.