mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
afb3dad22b
* Add timestamps to markers * Tiny tweaks * Update addons/markers/functions/fnc_canTimestamp.sqf Co-authored-by: Brett <brett@bmandesigns.com> * Update addons/markers/functions/fnc_initInsertMarker.sqf Co-authored-by: Brett <brett@bmandesigns.com> * Add timestamp format setting * Script cleanup, move checkbox under desc * Fix stringtable validation * Tweaks * Remove styling from stringtable * Edit timestamps instead of append Credits to @PabstMirror Co-authored-by: Brett <brett@bmandesigns.com>
27 lines
496 B
Plaintext
27 lines
496 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Freddo
|
|
* Checks whether a unit is able to timestamp.
|
|
*
|
|
* Arguments:
|
|
* 0: Unit <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Whether unit is able to timestamp <BOOL>
|
|
*
|
|
* Example:
|
|
* [ACE_Player] call ace_markers_fnc_canTimestamp
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params [["_unit", ACE_player]];
|
|
|
|
private _assignedItems = assignedItems _unit;
|
|
|
|
private _index = _assignedItems findIf {
|
|
([_x] call EFUNC(common,getItemType)) isEqualTo ["item", "watch"]
|
|
};
|
|
|
|
_index != -1
|