All pastes #385599 Raw Edit

Something

public text v1 · immutable
·published 2007-03-07 23:03 UTC
rendered paste body
_me =  _this select 0 ;

sleep 2;
_a=0;

publicvariable dropfinished;
dropfinished = 0;

for [{_i=0},{_i<1},{_i=_i}] do {

pos = getpos _me;
publicvariable "pos";
	

	if ((player in _me ) && ( _me isKindOf "AIR") && (player == driver _me) && ((pos select 2) > 3 ))  then {
	_a=1;
	};
		
	if ((_a == 1)  && ((round(pos select 2)) == 0 )) then {
 	_a= 0;
	myaction = _me addAction ["droptbikes", "bikedrop.sqf"];
	};
	
	if ((dropfinished == 1) || ((round(pos select 2)) > 4 )) then {
	_me removeAction myaction;
		if (dropfinished == 1) then { _i = 1;};
	};

sleep 0.3;

};