I know there are some scripts and stuff which simulate secondary explosions and stuff on desroyed vehicles but i need a script that will take this to the next level!
what i need is a script that finds what kind of ammo a vehicle has for its weapon(like for the jeep w/ MG it would be an MG bullet) and setposes a bunch of them at random times arround the jeep so that it flys out and can hit people hundreds of feet away.
ex:
say you had an ammo truck and it had, tank shells in it, grenades, and Machine gun bullets. then in real life those things would cook off in the ensueing fire and start firing off at random directions which is extramly dangerous say you had a truck with 50 heat shells in it. then they would have all fired off at a user defined time period. so if the user set the time period to 0, then 50 heat shells would shoot off imiadiatly in all different directons, exploding whereever they hit. if you set it to 100, then over the course of 100 seconds, all the rounds would have cooked off.
but if you had 100 bullets in it and you set the time period to 100, it wouldnt nesecarily mead that one would go every second, maby 2 would go off after 3 seconds, then 1 more a tenth of a second after that, and then there could be a 5 second lul(maby as the fire started burning through a new ammo box) followed by 1 round cooking off, and then maby 5 go off all within a hundreth of a second of eachother. but the thing is, its all random. it dosent need and fire effects because i have these and can add them in myself.
just maby make the script so like,
it first detects what ammo the vehicle is carring, then waits till the vehicle is destroyed, and then waits 10 or 20 seconds after the vehicle is destroyed (because the fire needs to build) the ammo will start cooking.
thanks for the help in advance.