Epoch/Sources/epoch_code/compile/functions/EPOCH_fnc_isInsideBuilding.sqf
2015-09-14 15:55:36 -05:00

5 lines
258 B
Plaintext

private ["_playerPosASL","_abovePlayerPosASL"];
_playerPosASL = visiblePositionASL player;
_abovePlayerPosASL = [_playerPosASL select 0,_playerPosASL select 1,(_playerPosASL select 2) + 10];
//Return:
lineIntersects[_playerPosASL, _abovePlayerPosASL, player]