Want those pesky STATIC or THING objects to fall with a realistic trajectory? Here's the answer!
This script is the by-product of a universal airdrop package that I am very near to completing.
;FreeFall v1.0 by Mr.Peanut 2006/09/09
;Simulates freefall for STATIC and THING objects
;Usage
;[_obj, _pos, _vel, _drag, _exitcode] = exec "freefall.sqs"
; _obj = STATIC or THING object
; _pos = Initial 3D position array
; _vel = Initial 3D velocity array
; _drag = Optional drag coefficients which simulate air resistance
; 2 element array. First array element is horizontal drag,
; second array element is vertical drag. Suggested range of values
; is 0-1
; _exitcode = Optional global variable to terminate script. Variable name must be enclosed
; in quotes i.e. must be a string. Setting this global variable to TRUE
; will force script to terminate.
;
; This script requires Mr.Peanut's elevation function, elevation.sqf which must be
; in the same folder as freefall.sqs