{"name":"BIS_fnc_onDiaryChanged","operator":null,"title":"BIS fnc onDiaryChanged","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_onDiaryChanged","revid":309890,"updated":"2022-05-05T12:09:54Z","groups":["Event Handlers"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Register code to be executed when diary item changes.\n\nArguments passed into code are:\n    0: DISPLAY - map display\n    1: BOOL - true if clicked on subject list, false when on record list (clicking on subject may also trigger record)\n    2: STRING - subject name\n    3: STRING - record name\n    4: ANY - passed arguments (index of onDiaryChanged code when no custom arguments were used)","syntaxes":[{"syntax":"_this call BIS_fnc_onDiaryChanged","since":null,"effect":null,"exec":null,"params":[{"name":"_this","type":"Code, Array, Number","types":["Code","Array","Number"],"optional":false,"default":null,"description":"CODE\nARRAY - code with custom arguments in format [CODE,ARG1,ARG2,...]\nNUMBER - remove code of given index","since":null,"text":"CODE\nARRAY - code with custom arguments in format [CODE,ARG1,ARG2,...]\nNUMBER - remove code of given index","source":"docblock"}],"returns":{"type":"Number","types":["Number"],"description":null,"text":"NUMBER - index of onDiaryChanged code","source":"docblock"},"inferred":true}],"examples":[],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Event Handlers","Functions","Introduced with Arma 3 version 1.00"],"docblock":{"author":null,"description":"Register code to be executed when diary item changes.\n\nArguments passed into code are:\n    0: DISPLAY - map display\n    1: BOOL - true if clicked on subject list, false when on record list (clicking on subject may also trigger record)\n    2: STRING - subject name\n    3: STRING - record name\n    4: ANY - passed arguments (index of onDiaryChanged code when no custom arguments were used)","params":[{"index":null,"name":"_this","types":["Code","Array","Number"],"optional":false,"default":null,"description":"CODE\nARRAY - code with custom arguments in format [CODE,ARG1,ARG2,...]\nNUMBER - remove code of given index","text":"CODE\nARRAY - code with custom arguments in format [CODE,ARG1,ARG2,...]\nNUMBER - remove code of given index"}],"returns":{"types":["Number"],"text":"NUMBER - index of onDiaryChanged code"},"examples":[],"syntax":null,"execution":null,"notes":null,"requirements":null,"meta":{},"text":"Description:\nRegister code to be executed when diary item changes.\n\nArguments passed into code are:\n    0: DISPLAY - map display\n    1: BOOL - true if clicked on subject list, false when on record list (clicking on subject may also trigger record)\n    2: STRING - subject name\n    3: STRING - record name\n    4: ANY - passed arguments (index of onDiaryChanged code when no custom arguments were used)\n\nParameter(s):\n_this:\n    CODE\n    ARRAY - code with custom arguments in format [CODE,ARG1,ARG2,...]\n    NUMBER - remove code of given index\n\nReturns:\nNUMBER - index of onDiaryChanged code"},"filled_from_docblock":["description","params","syntax","returns"]}