(04-15-2008, 08:16 AM)Pulverizer link Wrote:I don't know how this line is supposed to create a circular impact area:As I said before it is not my script and it's been ages since I have used trigonometry myself...
Code:
_tmp = _ord createVehicle [(_coords select 0) + (random _radius) - (_radius / 2), (_coords select 1)
+ (random _radius) - (_radius / 2), _height]
Should be something like this:
Code:
_rdir = random 360
_rrad= random _radius
_tmp = _ord createVehicle [(_coords select 0) + sin(_rdir)*_rrad, (_coords select 1) + cos(_rdir)*_rrad, _height]
But the script seemed to work okay and who cares or even notices that the shells don't fall in a circle but in a rectangle or triangle Â