mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
23 lines
551 B
Plaintext
23 lines
551 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: PabstMirror
|
|
* Checks if object is a fence. Should work on any fence type, even when (typeOf == "").
|
|
* Call is fairly expensive because of string checking.
|
|
*
|
|
* Arguments:
|
|
* 0: Object to test <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Is fence <BOOL>
|
|
*
|
|
* Example:
|
|
* [cursorObject] call ace_logistics_wirecutter_fnc_isFence
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_object"];
|
|
TRACE_1("Checking if fence",_object);
|
|
|
|
getNumber (configOf _object >> QGVAR(isFence)) == 1 || {(getModelInfo _object select 0) in FENCE_P3DS}
|