forked from Giallustio/HeartsAndMinds
-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #253 from Vdauphin/FIX-paradrop_fall
FIX: object unload fall under bridge
- Loading branch information
Showing
3 changed files
with
24 additions
and
33 deletions.
There are no files selected for viewing
29 changes: 14 additions & 15 deletions
29
=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/obj_fall.sqf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
|
||
private ["_obj","_height","_fall","_xx","_yy"]; | ||
private ["_obj","_fall","_pos"]; | ||
|
||
_obj = _this select 0; | ||
_xx = getPos _obj select 0; | ||
_yy = getPos _obj select 1; | ||
_height = (getPos _obj) select 2; | ||
_fall = 0.09; | ||
while {((getPos _obj) select 2) > 0.1} do | ||
{ | ||
_fall = (_fall * 1.1); | ||
_obj setPos [_xx, _yy, _height]; | ||
_height = _height - _fall; | ||
//hint format ["%1 - %2", (getPos _obj) select 2,_height]; | ||
sleep 0.01; | ||
}; | ||
_obj setPos [_xx, _yy, 0]; | ||
_obj = _this select 0; | ||
_pos = getPos _obj; | ||
_fall = createVehicle ["Land_PenBlack_F", [_pos select 0, _pos select 1, (_pos select 2) + 0.7], [], 0, "FLY"]; | ||
_fall setPosASL getPosASL _obj; | ||
_obj attachTo [_fall,[0,0,0]]; | ||
|
||
sleep 0.1; | ||
|
||
waitUntil {(Velocity _fall select 2) isEqualTo 0}; | ||
|
||
detach _obj; | ||
_obj setPosASL getPosASL _fall; | ||
deleteVehicle _fall; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters