Some time ago I've made a script to flatten a tire of a vehicle instantly by camcreating bullets at tire's position until canmove = false.
Next step I tried is was adding an action to each tire so the player can click it to flatten each separate tire. I create 4 gamelogics exactly under the tire, to get these positions I've used the
Relposcoord function, Relposcoord.sqf returns the real coordinates (height is not taken into account) of a relative position to an object (on the principle of the camsetrelpos command).
Problem is that the tire positions are different for each vehicle, so I had to make a database based on the typeof command with the right values for each vehicle :-\
Right now it supports just the jeep, only for a test.
You can click the action to flatten a tire, but when 1 is flat all other actions are removed because I don't have a condition to determine which tire is flat.
The main problem is that I can't make it userfriendly because I can't pass variables through an addaction script. A variable I need is the vehicle, but the actions are attached to the gamelogics under the wheels instead of the vehicle itself, how can I pass that variable in my addaction scripts?
Anyway the script works, but it's experimental, I dunno how I can make it userfriendlier, but maybe someone else is interesting to improve it.
Maybe you can use it in a special ops mission to immobilise enemy cars without firing like the little testmission below (no addons needed)