Epoch/Sources/epoch_code/compile/functions/EPOCH_fnc_isInsideBuilding.sqf

5 lines
258 B
Plaintext
Raw Normal View History

2015-09-14 20:55:36 +00:00
private ["_playerPosASL","_abovePlayerPosASL"];
_playerPosASL = visiblePositionASL player;
_abovePlayerPosASL = [_playerPosASL select 0,_playerPosASL select 1,(_playerPosASL select 2) + 10];
//Return:
lineIntersects[_playerPosASL, _abovePlayerPosASL, player]