Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion addons/common/fnc_isTerrainObject.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@ SCRIPT(isTerrainObject);

params [["_object", objNull, [objNull]]];

_object in nearestTerrainObjects [_object, [], 1, false, true] // return
if (isNull _object) exitWith { false };

// Terrain objects always have an owner of 1, but `owner` command is server exec. So we just check first character of netId
// They also have a negative netId, but Dedmen said not to rely on it in the case that BI fixes it
(netId _object) select [0, 1] == "1"
Loading