2024-02-07 23:36:13 +00:00
|
|
|
#include "..\script_component.hpp"
|
|
|
|
/*
|
|
|
|
* Author: tcvm
|
2024-07-27 17:42:31 +00:00
|
|
|
* Checks if the player can pickup the tripod.
|
2024-02-07 23:36:13 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Tripod <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Can pickup <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
2024-07-27 17:42:31 +00:00
|
|
|
* cursorObject call ace_csw_fnc_canPickupTripod
|
2024-02-07 23:36:13 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2024-06-22 17:39:36 +00:00
|
|
|
params ["_tripod"];
|
2024-02-07 23:36:13 +00:00
|
|
|
|
2024-06-22 17:39:36 +00:00
|
|
|
alive _tripod && {((crew _tripod) findIf {alive _x && {!unitIsUAV _x}}) == -1} // return
|